Answer Questions
Chuck B Managed vc++ 2003 compile problem
Hello, i've got a really anoying bug that i cant seem to figure out.. The code comes from a 2005 project which needs to be compiled in a 2003 project. The code is as follows: // CitectAPIManagedDll.h #pragma once using namespace System; using namespace System::Runtime::InteropServices; namespace CitectAPIManagedDll { /// Create a unmanaged wrapper structure as the placeholder for unmanaged class /// members as exported by the DLL. T ...Show All
psygone13 How to call a Dialog Box?
Hi! I'm new to VS and I need some help! I've made a main form and another (i'll use it as a dialog box). I have a Main Menu on the main form and I want to call dialog box (form 2) when I press menu item. I know where tu insert the call code but I dont know what code to use. Help!!! Another question: As for the cpp files included in the project....which one is the main one (is it the one with WinMain function ) Does this mean that I can't have ...Show All
karl140.6 compiler generates incorrect code /w all optimizations disabled
I have encountered, twice now, cases where the VS2005 C++ compiler generates incorrect x86 code. I have a small boyer-moore implementation that I can send to anyone interested that demonstrates one of these cases. Actually, I'll post it as a reply to this.. Simply re-arranging the code (no functional difference) fixes the errata. Below are copies from the Visual Studio debugger, showing the incorrect code.. then a simple adjustment that resulte ...Show All
Kumar Abhishek error C3861: 'exit': identifier not found
Hi, I'm trying to build an old code (main.cpp) where I'm using SDL. This is my first time using Visual Studio 2005 . I have included the following: #include <SDL/SDL.h> #include <stdio.h> #include <stdlib.h> int main( int argc, char *argv[]) { if ( SDL_Init(SDL_INIT_AUDIO|SDL_INIT_VIDEO) < 0 ) //SDL_Init will return -1 if it could not initialize { printf( "Unable to in ...Show All
Greasytires Creating pointer causes illigal memory access
Hello I need to wrap some functions from the Insigth Toolkit in my own DLL. This is generally no problem. I create a class whith some methods that uses the toolkits functions. Then I create some functions that will interact with the objets of my class; and only this few functions I export with dllexport. (Some kind of wrapping...) This all works fine. But I need some pointer to use in every method. So my idea was following: I wrote a small Win ...Show All
Hexar Anderson error lnk2019 when calling a function with wchar_t param
hey guys, my problem is i have a static library (native). and i have a class that takes a wide character ("wchat_t") as a parameter. now when i did my win32 mfc application, i come to use that function inside my class and it results in a link error to that function: error LNK2019: unresolved external symbol "public: void __thiscall NBaseStaticMesh::LoadModel(wchar_t *)" what do u think is the problem ...Show All
sbinnuri Splitting intergers into seperate characters
I am new to C++.Net and I am also having to take some "refresher" courses in math at the local college. I have run into a problem that i am sure i am "over thinking". The project from my book wants me to design a Console program that takes a 5 diget integer, lets say 45339 for kicks, but the book says any. Using only the modulus and division optrs., "pick off" each character and then print to console with a space seperating each digit. 45339 o ...Show All
Bolke Source code to __ValidateEH3RN
For various reasons, I wrote my own DLL loader for my project. I load my modified DLL format by using VirtualAlloc and such, and handle all the sections and relocations. (Yes, Data Execution Prevention is handled correctly, flagging executable pages as executable with VirtualProtect.) However, I have a problem: exception handling doesn't work. Microsoft added code to the C runtime library that causes exception handlers to be verified as bein ...Show All
AmandaS_MS MessageBox problem under Visual Studio 2005 C++
Hello, I'm a beginner with Visual c++ studio. I have made a new project MFC application and I want just to use this simple function : MessageBox("Test"); But when i compile the project i have this error message : c:\programmation c++\visual c++\testformwindows\testformwindows\Form1.h(100) : error C2440: '<function-style-cast>' : cannot convert from 'const char [5]' to 'System::Windows::Forms::MessageBox' ...Show All
Vance Chen Here we go again... ><
Maybe I'll get the same guy who helped me last time to help me again... I have the file built and everything. Now compiling gives me an error, saying the iostream.h file doesn't exist so I can't use the #include<iostream.h> that I thought was standard for every C++ program... So how do I get the #include<iostream.h> to work try using std::cout, std::endl instead of just plain cout, endl. that would ...Show All
DanoruX CBitmap - Simple example
Hi, I am trying to load some images in a Picture Area. I only have the pointers to the images, and this pointers are of the type unsigned long* (I can also convert it to IplImage* to use with OpenCV). This unsigned long* get the images grabbed from an camera and I would like to display these images in this Picture Area (it is real time, I get the images from my camera and display them). I have tryied to use this (HBITMAP)LoadImage function, but ...Show All
Devapriya De Silva WORKABLE VERSION OF VC++
Can anyone direct me to the lastest workable version of vc++. Obviously Microsoft Visual Studio 2005 is useless. Even their hello world has build problems. Converting older versions always gives some error & When one generates a new program it doesn't even see it! I'm going back to my old disk version of Visual C++ from years ago but maybe someone knows of a more contemporary version which works. Is 2003 valid 2002 Any comments would be ap ...Show All
p1edmond Error in Adding the new class (Visual Studio 6.0)
Hi, I am not able to add a new class to the already existing project which is designed using VC++ and ATL Com. I am getting the error "Error Creating resources for the new class" Any help regarding this is highly appreciated Thanks in Advance Check if one of the files are read only. Delete the current clw file. Note that VC6 isno longer supported. This forums are for the suppo ...Show All
GreenpathDBA who may help me!!
I am a vc++ beginner.I need about vc++ book.so,i hope somebody can help me that tell me some as to vc++ ebook site. Here is a link of some VC++ Books that you can buy. http://www.amazon.com/exec/obidos/tg/detail/-/0201721481/ref=pd_sim_b_4/102-5393407-4543349 %5Fencoding=UTF8&v=glance Also, the online VC++ help at http://msdn.microsoft.com is always helpful specially for samples. In addition, I believe if you search the ...Show All
Bob Morris The breakpoint will not currently be hit.
Hi there, I downloaded and installed Visual C++ 2005 Express Edition last night, and on the whole I'm really happy with it. I am however experiencing difficulties using breakpoints while debugging Windows applications. When I make a new console application, place a breakpoint and start debugging everything works like a charm. However when I try to create a Windows application, and do the same, the breakpoint symbol turns into a hollow circle, ...Show All
