|
If you want a global variable to be accessed from all files, make the definition in the source file (.c, .cpp etc.) instead of a header file.
In the header do a declaration like this - extern int a;
|
|
|
|
|
Hi All
I am developing the VC++(MFC) base application using visulstudio 2008.
Please suggest the best tool for find out the memory leakage from my application.
Thanks In Advance
|
|
|
|
|
Visual Studio has some support[^] to do this. I have also used Insure++[^].
Best wishes,
Navaneeth
|
|
|
|
|
|
|
|
Hi all,
please tell me how can get the name of connected windows mobile.
thanks in advance.
|
|
|
|
|
|
this code generate these errors
1>------ Build started: Project: DeviceInfo, Configuration: Debug Win32 ------
1>Linking...
1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __malloc_dbg referenced in function "void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &,char *,int)" (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)
1>libcpmtd.lib(xdebug.obj) : error LNK2019: unresolved external symbol __free_dbg referenced in function "void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &,char *,int)" (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)
1>Debug\DeviceInfo.exe : fatal error LNK1120: 2 unresolved externals
1>Build log was saved at "file://c:\Program Files (x86)\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Deviceinfo\Debug\BuildLog.htm"
1>DeviceInfo - 3 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
please tell me how can i resolve it.
|
|
|
|
|
|
|
|
hello guys... i have two projects. Now from Project 1, I copied all the necessary (XYZ.h) and (*.cpp) files to Project 2. Then I added them (Project->Add Existing Item) to the Project 2. But when I run the Project 2, it complains that
fatal error C1083: Can not open include file: 'XYZ.h' No such file or directory
whats wrong??
|
|
|
|
|
At a guess it cannot find "XYZ.h". Take a look in your project directory and make sure the file is in the correct place.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
well i have done this once again. The file is in the directory. Is there anything else that I am forgetting?
|
|
|
|
|
Try right-clicking the #include "xyz.h" directive and selecting Open. Does it? From where?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I dont know whats happening. I repeated the same procedure and this time it was OK.
|
|
|
|
|
|
Why do you need to post the same message three times? Post it once and wait; if anyone has the answer they will give it to you, if not you may have to do some research for yourself.
Just say 'NO' to evaluated arguments for diadic functions! Ash
|
|
|
|
|
how can i connect my VC++6 MFC application to sql server? i simply need to know how do i make connection to VC++6 to sql server
plzzzzzzzzzzz help me....
|
|
|
|
|
Why you create multiple thread ??
There are many projects in code project Click here ->[^]
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
|
|
|
|
|
how can i connect my VC++6 MFC application to sql server? i simply need to know how do i make connection to VC++6 to sql server
|
|
|
|
|
Use this
#define CONNECT_STRING _T("DSN=mmmmmmm;UID=sssssss; PWD=gggggg")
m_pDBConn = new CDatabase();
BOOL w_bIsOpen = FALSE;
if(m_pDBConn)
{
try
{
//opens a connection to the data source
w_bIsOpen = m_pDBConn->OpenEx(CONNECT_STRING);
}
|
|
|
|
|
Hi all,
i m reading a text file by using CStdio file,i want when i redaing the file and find the purticular line now i want to update it.
please tell me how can i do this.
thanks in advance.
|
|
|
|
|
Hi,
The only updates you can do on a text (sequential) file is appending or shortening.
So if you want to change something 'inside' you must create a new file and write there [unchanged beginning][changed part][unchanged ending].
Then you can delete the original file and rename the new file with the original name.
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|