Answer Questions
tassie how can i use the type struct in VISUAL C++??... i'm new in visual c++
hi! i have a program in c++ and i want to do it in visual c++, but i found a problem, in the code program made in c++ i use a type struct : struct ind { char *c; int f; } but i think that in visual c++ doesn’t exist the type struct , i'm not sure..... can i use the type struct in VISUAL C++ or what other kind of struct may i use i think that is the main question.... WH ...Show All
Indian Ocean Unmatched braces in preprocessor
Hi, I have a quick question about the VC++ preprocessor. I'm #defining some start and end assembly code, as I use it in several places and I don't trust it as inline - I need to make sure the registers don't change. So, I tried # define __asm_dp_start __asm { \ push eax; push ebx; \ mov eax, tempValueALU; \ mov ebx, op2; # define __asm_dp_end mov result, eax;\ setc bl; mov ALUCarry, bl;\ seto bl; mov ALUOverflow, bl;\ pop ebx; pop ...Show All
arao Problem compiling
1>Compiling... 1>cl : Command line warning D4002 : ignoring unknown option '/errorReport:prompt' 1>X6Console.c 1>c:\Program Files\Microsoft Visual Studio 8\VC\include\string.h(141) : warning C4616: #pragma warning : warning number '6059' out of range, must be between '4001' and '4999' 1>Linking... 1>LINK : fatal error LNK1181: cannot open input file 'yt/.obj' Simple win32 app with a WinMain returning 'TRUE' and I get these erro ...Show All
omarsaid char* pointer in class member
Working in VC++ v.7(.NET 2003). Cannot work with char* pointer in class member. My example: class ABC { char *aP; public : ABC ( void ); ~ ABC ( void ); int myFunction( void ); }; Then when in my function int AB ...Show All
manticor Spurious warning with "jz near" instruction in __asm
I'm getting a warning that doesn't make sense when I'm using __asm. Here's the code I'm using: void __stdcall function2( int number) { printf("Hello: %d\n", number); } __declspec ( naked ) void __stdcall function1( int param) { __asm { mov eax, param test eax, eax jnz near function2 ret 4 } } When I do this, I get this warning message from the compiler: warning C4414: 'function2' : short jump to function conv ...Show All
CarlBrochu notification message from CSliderCtrl when starting to drag
Hi all, in my application, I have a CSliderCtrl and also one timer. at the timer event, I read the values from an instrument, and refresh the interface, also the CSliderCtrl. For some users, the interval of the timer is too short to change the value before it is refreshed. I want to kill the timer when the user starts dragging the slider and agin start it after he stops. right now I process the NM_REALEASEDCAPTURE message f ...Show All
elaechelin ListView grouping mode
Hi! How can I implement the 'grouping mode' in a derived CListView class Can you please provide me a sample I use 'Microsoft Visual Studio.NET 7.0 beta 2' with 'Microsoft Visual C++.NET 2002' Thanks a lot. VC++ 2002 That too, a Beta Egad!!! Anyway I guess you could access the internal list control and call EnableGroupView on it. FabioDeSantis wrote: Hi! How can I implement the 'grouping mode' in a derive ...Show All
mhojlund How can I manipulate strings in ATL
Some problems happened during my simple development on IE. When I try to use MessageBox to display one string, manipulated by"strcat", there is no error or warning during compiling. But when IE tries to invoke the DLL, MessageBox involved, the IE reports that there are some errors in my DLL. After removed "strcat", every thing is ok. I wonder whether perhaps the string manipulation is different from the ordinary ...Show All
Piovra Implementation for _aligned_malloc?
Hi. I'd like to see the implementation for _aligned_malloc, in order to make a version with further capabilities. This function is part of MS C stdlib. Hmm, it just occurred to me that Microsoft's implementation of stdlib may be secret. Is that why I can't find stdlib's source Thanks from a new arrival from the PPC/CodeWarrior world... Try stepping into the method or actually preproce ...Show All
Bobby Fu Need Help
I wanna program a simple game with VC++ but I don't know how to load an Image and how to manipulate these Image. Please show me some URL or tips about this (I searched with Google but document that Google find out is confusing to me)... Before, i have program game with PNG picture on Java. But now, i wanna to develop a game with C++. If C++ only support Bitmap, i'll consider that.... To load an image, look at the Image and Bitmap c ...Show All
forteous calling Activex methods from a static function--Dialog-based application
i am using an Activex control in a dialog based applicaton(VC++). i created an member variable for that(myportcontroller). In an non-static function i am able to call the Activex control methods using the member variable and worked fine. But i need to call the activex control methods in an static function. Here i cannot use the member variable as it is a static function. So, i declared an object for Activex control class. Using that object i cal ...Show All
pine_ant Reading a value in two different headers...
Okay, new problem... I'm assuming I'd need the heap for this, but I can't figure out how to return the values or memory space I need... I've got two headers, gotoform.h and ScriptEdit.h... (both are forms of course).. gotoform asks for a linenumber to goto, it stores this (masked text box entry) as a System::String... i need to somehow return this to ScriptEdit and store it in a variable there... so in gotoform.h we have: private : S ...Show All
vshitn Code used to clear text boxes
im new to c++, and i would like to know the code that you need to use to clear text boxes. sorry i dont understand... Looks like the main issue here is that you do not seem to know how to associate an event handler method with a specific menuitem event. I am typing this off memory - but in the designer, select the menuitem and in the properties window, you should select the Click event. Add an event handler by doube clicking there, ...Show All
gypsydave Question About Headers
I want to use VSC++ for programming C. I know C isn't fully support cause the lack of MS deciding not to add the c99 which i believe is stupid. But I was wondering is there a way I can use my own C headers and libraries to build that are c99 and use it with VSC++. I have the Visual Studios Professional version. And change the compiler cause i don't wanna think i spent so much money for this and I can't use it. Cause of this problem. ...Show All
GreggM LNK problems continued
Hard life in C++ lane, I'll tell you. Trying to compile code with unmanaged CAsyncSocket class I got LNK errors: Build Log Build started: Project: SocketCplus4, Configuration: Release|Win32 Command Lines Creating temporary file "c:\Documents and Settings\....\My Documents\Visual Studio 2005\Projects\SocketCplus4\SocketCplus4\Release\RSP00000E1064772.rsp" with contents [/OUT:"Release\SocketC ...Show All
