-
- fatal errors - really fatal ?
by Olivier Marcoux
- 3 Replies
- Last post
by Bite Qiu - MSFT
- Hi everyone. My question is about the "fatality" of errors during the build process Is the following behaviour normal I have an application project A using a library project L In the project dependencies of A, I checked library L I build. Everything goes fine. *.obj are generated for source files. L.lib is generated. A.exe is generated. I update my source from an external SCM. Now let s
-
- GetProcAddress() Return wrong address
by 123sam
- 7 Replies
- Last post
by Simple Samples
- Let me explain my problem
i have two Dll by name demo_application.dll and application.dll
demo_application.dll depends on application .dll
In demo_application i define a function by name us_main() (its exported)
In application.dll also i define a function by name us_main(its exported)
i load only demo_application.dll
HMODULE hMod = LoadLibrary("demo_appl
-
- Visual Studio linking to old version of dependent library
by RoryD
- 2 Replies
- Last post
by RoryD
- Hi, I have a bit of a weird problem. I make a change in a library in my solution which causes the library to fail compilation. An executable project in the same solution which depends on the library still tries to build though. This executable ends up linking with the old version of the library which really messes things up. Every time I touch a header in the library which the executable includes,
-
- Problem with valarray min() function
by Albireo1
- 1 Replies
- Last post
by Ramkrishna Pawar
- I want to use the valarray min function. I have started a new Visual C++ 2005 project that is a console application using MFC. I have inserted the example code from the Visual C++ Developer Center at (http://msdn2.microsoft.com/en-us/library/a3cwhbxd(VS.80).aspx) for the min() function. The code for valarrayMin.cpp is:
-
- getting rid of the "application has encountered a problem" dialog
by Maria Gullickson
- 6 Replies
- Last post
by P.GopalaKrishna
- I am writing a (non .NET) c++ application in XP. When the application crashes, it pops up the "<application> has encountered a problem" window. I am trying to figure out how to not have this window appear. If the application crashes, I want it to just die silently. I figured out that I can call AddERExcludedApplication() to get rid of the Send Error Report button, but I want to get
-
- OCX problem
by rbickert
- 5 Replies
- Last post
by Ji Zhou ¨C MSFT
- Hey guys,
I have just created a rather large .OCX and finally worked out all of the errors, as far as compiling goes anyway. The entire purpose of making this ActiveX control was so it could be used in the program : Wonderware Intouch. When we load it into the Wonderware program, it registers properly in the registery, but fails to display the controls. When we try to do anything else, the prog
-
- Real I/O access in WINXP platform
by Robert_unicorn
- 14 Replies
- Last post
by superdos
- I'm trying to write a program which can offer customer to monitoring the system status in WINDOWS-XP (such as the temperature, GPIO, watch dog timer which offered by super I/O chip). I'm using the VS2005-professional edition, could anybody advise me about these question: 1). Which type of program (VC++ C# MFC or others) should I choose 2). How could I access the port I/O (such as "4E, 4F, 2E
-
- [C++/CLI] Help with threading
by ArtiB
- 8 Replies
- Last post
by ArtiB
- Hi, I need to pass a pointer to unmanaged type to thread callback function in a C++/CLI Windows Form Application. But the thread callback takes only reference to managed type as a parameter. How to convert a pointer to unmanaed type to managed reference Appreciate any pointers/url for the above problem. Thanks a lot, Arti
-
- VS2005 SP1 regression 11.8 [class.access.nest]
by SimuAndy
- 7 Replies
- Last post
by einaros
- According to what might be the standard, 11.8 Nested classes [class.access.nest] 1 The members of a nested class have no special access to members of an enclosing class, nor to classes or functions that have granted friend ship to an enclosing class; Yet, class Friendly { friend class Touchme; public: Friendly() {} private: int x; }; class Touchme { public: Touchme() {}
-
- QueryInterface and void** out parameter
by sureshsundar007
- 5 Replies
- Last post
by crescens2k
- Hi all,
I want to know why the 2nd parameter of the QueryInterface method in IUnknown interface is declared as a pointer to pointer variable
HRESULT QueryInterface( REFIID iid , void ** ppvObject );
I guess if it is returned as a pointer object then we could return IUnknown* instead of void* as per inheritance rules.
Thanks for your help.
Thanks,
Suresh.
-
- Backing up directories using BackupRead().
by Ketan Mahajan
- 5 Replies
- Last post
by Ketan Mahajan
- Hello everyone.
I am trying to write a generalized routine for backup of files as well as directories. The procedure I have followed is as follows:
(Consider that user is having all access rights to all files and directories.)
1) Call CreateFile() with FILE_FLAG_BACKUP_SEMANTICS flag set.
2) Call BackupRead() passing handle obtained from CreateFile().
3) Write the buffer obtai
-
- Any Exam for vc++ or vb
by Vish_All
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hi , all
I have 2 yrs of exp in vb 6.0 and vc++.
I am not interesting in any .net examination. My dream is to be a MCSC certified in vb 6.0 or vc ++.
i have tried on several links but i found vc++ is expiring.....
plz help me....
-
- Can Visual C++ 6.0 Do It???
by &#124;_N_T_ &#
- 10 Replies
- Last post
by Sdi
- Hi,
I am able to use SHbrowseforfolder to browse my local machine folders. Is it possible to show the folders of a remote machine with Visual C++ 6.0 Please help. Thanks...
|_N_T_|
-
- CDialog premature display
by R.D.
- 2 Replies
- Last post
by R.D.
- When I call Create on a CDialog derived class, CDialog::Create calls CreateIndirect. During that call the dialog actually displays in the parent window. The user then sees all of the buttons or controls flash on the screen.
If I step thru CDialog::Create, I see the dialog display as I step across the CreateIndirect call. Upon further tracing, I can see that ::CreateDialogIndirect is called
-
- can (link or cl) rename a symbol?
by witkamp
- 3 Replies
- Last post
by Marius Bancila
- Can "link" rename s symbol I have a an environment where it is required that malloc is to fill the allocated area with zero. I am building e DLL which is dynamically loaded. I would like to rename all references to malloc to my_malloc which would then call the CRT malloc. I am linking to the CRT dynamically. Is there a way to tell the linker or compiler to rename references to malloc to
-
- Chinese Characters are not appering on menu.
by Sharad_1980
- 4 Replies
- Last post
by Sharad_1980
- Hi,
I am using VS 2005. I have created a simple AppWizard generated MFC single document Application. While createing this application, I have selected Resource Language as Chinese(PRC). For this language, code page no is 936 which I installed already.
Now ReadMe.txt file generated by framework does show Chinese Characters. But When I am running this application, I am not able to see Chin
-
- ATL IDispEventSimpleImpl reverse order bug still present in VC++ 2005 ????
by Emmanuel Thevenot Beaufort
- 4 Replies
- Last post
by Emmanuel Thevenot Beaufort
- I'm cross-posting my question to this forum (original here : http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1173728&SiteID=1 ) as it seems that ATL is also mentionned here. Sorry, if it's a bad practice !
I'm currently implementing an event sink with IDispEventSimpleImpl. I have the same problems than the ones described in KB288724 ( http://support.microsoft.com/kb/288724/en-us ), I
-
- not a member of gcroot<T>
by Warren Blackwell
- 5 Replies
- Last post
by Warren Blackwell
- Good day,
I've defined a managed class, call it "CMngd" with some members, say "int CMngd::GetVal()".
Later in my assembly, I wish to add an unmanaged native class "CUnMngd", which holds a handle (^) to an instance of CMngd.
I've used the gcroot<T> template to do so:
In CUnMngd:
gcroot<CMngd ^> *hndl;
This compiles fin
-
- Can I call normal c++ and/or MFC code from an ATL project ?
by Abhinav Jha
- 2 Replies
- Last post
by Abhinav Jha
- Hi,
I'm a little confused about this, please help. My problem is that I have created an ATL project ( automation ) using which I access my sidebar gadget, and print some stuff there. ( I send the gadget HTML code, which it displays as the innerHTML of a <div> element.
Now, I want to access a web service, which I was earlier doing using a c++/MFC project. The code to access/
-
- Display an Unsigned CHAR as Binary and Hex
by MrBrilliant
- 7 Replies
- Last post
by Gesus Christ
- Hello everybody.
I was wondering if it was possible to display a UCHAR in binary and hex format using Visual C++ 6.0
Regards
-
- How to recognize the device
by BibinVarghese
- 5 Replies
- Last post
by Bruno van Dooren
- Hi All
i have been trying to get the detail(which Device it is like Digital camera, vidio cammera, scanner etc) of a device which is connected to USB port.
and i am using
SetupDiGetDeviceRegistryProperty to get class GUID and
SetupDiGetDeviceInterfaceDetail to get the detail but i am not able get any thing in
SP_DEVICE_INTERFACE_DATA so anyone can help me how will i achive this t
-
- Memory leaks created by the compiler/ run-time system
by AlanWKey
- 9 Replies
- Last post
by Prasad Somwanshi
- I have spent nearly two weeks trying to find some memory leaks in a program I am developing. Initially I thought it had something to do with PlaySound (see previous post, 30 Jan 2007) but that was not so. I have now discovered some hidden memory leaks in C++ which I am happy to share with others. (Please note I am using Version 6.0. It¡¯s possible these problems have been fixed in later versions.)
-
- Discarding Resource Script File
by karaefe48
- 1 Replies
- Last post
by TilakGopi
- Hi, I'm using a resource file(resources.rc) in my VS project. I'm integrating the project with another platform which does not support including resource scripts but allows lib/dll. How can i discard the resource file or How can I load resources to an external library
-
- Programming Help
by shailigum
- 5 Replies
- Last post
by Damien Watkins - MSFT
- Well hello everybody, im a 15 year old kid from the U.S. and im pretty interested in programming. i know a lot of Visual Basic (i use Visual Studio '05), and im moving on to C++ and im trying to learn whatever i can. i thought that maybe you guys could give me some ideas about where to go from here or what i can do in the future to further advance myself. im dedicated to this stuff and im willing
-
- Problem moving byte array from C# to Managed C++ and back
by DamienRoot6
- 5 Replies
- Last post
by Chuck the Code Monkey
- Hi,
I am currently trying to use Managed C++ to create a ,.Net wrapper for some unmanaged C++ code. I'm nearly there, but I have a really annoying issue. My code is as follows:
public : void Play(System::Byte buffer[]) { char buffer2[88200]; &n