visual-studio-languages-forums,windows-desktop-development-forums,visual-cRelated issues-Collection of common programming errors
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I am devloping a native C++ number crunching application. I am currently in the process of scaling it up for more data. It is a Win32 app.This application takes large amounts of data (around 10^7 data points) and processes them extensively. I had been using it on a smaller set of data (about an order of magnitude less) and it was working AOK.I am not 100% this is a memory problem, but when the program gets about a third of the way into preprocessing and loading of the data, it crashes with fa
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I have some code which needs to be native that I am trying to include in a managed c++ project via a pluggin. It can’t be added to references. The syntax for loading it manually, [DllImport(“ArmWrp.dll”)], is fine, but the functions cannot be found. Here is the simple pluggin, it is compiled with the unicode setting:// ArmWrp.cpp : Defines the entry point for the DLL application.//#include “stdafx.h”#ifdef _MANAGED#pragma managed(push, off)#endifBOOL APIENTRY DllMain( HMODULE hModule,
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Too much late-night programming… I feel like I’m missing something obvious again.I have a managed function calling an unmanaged function in C/CLI. The unmanaged function throws a std::exception. The managed function attempts to catch said exception. Unfortunately, the try/catch block fails to catch the unmanaged exception and insistson throwing an SEHException instead. .void MyClass::MyFunc(){try{_unmanaged->DoExcept();} //<– debugger shows SEHException is thrown herecatch(const st
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Some one can help me about native wifi ?I have Windows XP SP2 with Visual Basic 2005 and have update with WindowsXP-KB893357-v2-x86-ENU and WindowsXP-KB918997-v6-x86-ENU. I don’t know how to code, please give me some sample project with native wifi, and all neede resource to apply them.Thanks for response
msdn
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
Hi,I have a C++ project, a .dll project in Visual Studio 2005, which uses all native C++. I was able to compile the project with the /clr option (just /clr for common language runtime support). I am able to add the a reference to the dll with another C++ project, which is also compiled with the /clr option, and the entire application runs fine.The problem comes when I try adding the .dll project reference to a test C# project and add a “using MyCPPNamespace” to my C# class. I don’t
msdn
visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
I am experiencing the following issue:I want to dynamically load Native Message Defenition Library in managed C++.I am trying to load a Native Library developed in VC++ 6.0 using LoadLibrary() API.I need to get the Handle from the LoadLibrary API.When I call this LoadLibrary() API, I am gettin an exception “Can not return Marshal value”.I want to pass this Handle as the second argument(ie.lpSource) in the FormatMessage().Here i have shown the way i have done the defenition to load Nati
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I am devloping a native C++ number crunching application. I am currently in the process of scaling it up for more data. It is a Win32 app.This application takes large amounts of data (around 10^7 data points) and processes them extensively. I had been using it on a smaller set of data (about an order of magnitude less) and it was working AOK.I am not 100% this is a memory problem, but when the program gets about a third of the way into preprocessing and loading of the data, it crashes with fa
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I have some code which needs to be native that I am trying to include in a managed c++ project via a pluggin. It can’t be added to references. The syntax for loading it manually, [DllImport(“ArmWrp.dll”)], is fine, but the functions cannot be found. Here is the simple pluggin, it is compiled with the unicode setting:// ArmWrp.cpp : Defines the entry point for the DLL application.//#include “stdafx.h”#ifdef _MANAGED#pragma managed(push, off)#endifBOOL APIENTRY DllMain( HMODULE hModule,
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Too much late-night programming… I feel like I’m missing something obvious again.I have a managed function calling an unmanaged function in C/CLI. The unmanaged function throws a std::exception. The managed function attempts to catch said exception. Unfortunately, the try/catch block fails to catch the unmanaged exception and insistson throwing an SEHException instead. .void MyClass::MyFunc(){try{_unmanaged->DoExcept();} //<– debugger shows SEHException is thrown herecatch(const st
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Some one can help me about native wifi ?I have Windows XP SP2 with Visual Basic 2005 and have update with WindowsXP-KB893357-v2-x86-ENU and WindowsXP-KB918997-v6-x86-ENU. I don’t know how to code, please give me some sample project with native wifi, and all neede resource to apply them.Thanks for response
msdn
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
Hi,I have a C++ project, a .dll project in Visual Studio 2005, which uses all native C++. I was able to compile the project with the /clr option (just /clr for common language runtime support). I am able to add the a reference to the dll with another C++ project, which is also compiled with the /clr option, and the entire application runs fine.The problem comes when I try adding the .dll project reference to a test C# project and add a “using MyCPPNamespace” to my C# class. I don’t
msdn
visual-studio-languages-forums windows-desktop-development-forums c-standards-extensions-and-interop
I am experiencing the following issue:I want to dynamically load Native Message Defenition Library in managed C++.I am trying to load a Native Library developed in VC++ 6.0 using LoadLibrary() API.I need to get the Handle from the LoadLibrary API.When I call this LoadLibrary() API, I am gettin an exception “Can not return Marshal value”.I want to pass this Handle as the second argument(ie.lpSource) in the FormatMessage().Here i have shown the way i have done the defenition to load Nati
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I am devloping a native C++ number crunching application. I am currently in the process of scaling it up for more data. It is a Win32 app.This application takes large amounts of data (around 10^7 data points) and processes them extensively. I had been using it on a smaller set of data (about an order of magnitude less) and it was working AOK.I am not 100% this is a memory problem, but when the program gets about a third of the way into preprocessing and loading of the data, it crashes with fa
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I have some code which needs to be native that I am trying to include in a managed c++ project via a pluggin. It can’t be added to references. The syntax for loading it manually, [DllImport(“ArmWrp.dll”)], is fine, but the functions cannot be found. Here is the simple pluggin, it is compiled with the unicode setting:// ArmWrp.cpp : Defines the entry point for the DLL application.//#include “stdafx.h”#ifdef _MANAGED#pragma managed(push, off)#endifBOOL APIENTRY DllMain( HMODULE hModule,
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Too much late-night programming… I feel like I’m missing something obvious again.I have a managed function calling an unmanaged function in C/CLI. The unmanaged function throws a std::exception. The managed function attempts to catch said exception. Unfortunately, the try/catch block fails to catch the unmanaged exception and insistson throwing an SEHException instead. .void MyClass::MyFunc(){try{_unmanaged->DoExcept();} //<– debugger shows SEHException is thrown herecatch(const st
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Some one can help me about native wifi ?I have Windows XP SP2 with Visual Basic 2005 and have update with WindowsXP-KB893357-v2-x86-ENU and WindowsXP-KB918997-v6-x86-ENU. I don’t know how to code, please give me some sample project with native wifi, and all neede resource to apply them.Thanks for response
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
I am learning how to create windows in Win32 API, as well as add controls and send messages to those controls, etcetera. Is there another way of making a GUI easier than mapping out all the control locations by hand? Here is in example of how I am adding my controls:#include <windows.h>#include <commctrl.h>public class MainWindow{private: HWND progressBar1; VOID InitializeComponent() { MainWindow:rogressBar1 = CreateWindowEx( 0, PROGRESS_CLASS
msdn
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Hello!I have a .dll that is registered in COM. I know that the dll is successfully registered because works fine using C#. I need now to use it in an unmanaged C++ application and am having difficulties exposing the functions inside the dll. Using Visual Studio 2005, I can add the COM object as a reference and that is about as far as I get.As for the dll, I know that it is written in native c++, but I do not have access to its source files nor any .h files. It was registered using Regsvr32.exe.
msdn
visual-studio-languages-forums windows-desktop-development-forums visual-c
Hello. We have a native C++ .lib that we have created that uses aconst string in it. The string is initialized to “”. Wehave successfully linked this native library to a managed Windows C++Forms project and have code in the form to instantiate one of theobjects defined in the native library. However, when the Formsapplication starts, it attempts to instantiate the const string in thenative library and a _CrtIsValidHeapPointer assertion fails. Hasanyone seen this behavior? Admitte
Web site is in building