-
- CPU temperature
by Vijay_kar
- 2 Replies
- Last post
by Simple Samples
- How can I get CPU temperature without using any hardware dependent API.
How is it possible in VC++. Can any one help me
-
- msdev.exe startup crash
by RickIlowite
- 3 Replies
- Last post
by rcaryl
- Been using VC++ 6.0 for years with no problems. Suddenly when I try to start it , I get an error on msdev.exe that says "Runtime error! This application has requested the runtinme to terminate it in an unusual way." Note that this isn't coming from an application I built using the IDE - it's the IDE itself!
And it happens even if I start up without any open workspaces or projects.
I
-
- Linker Problems
by PeteJM01
- 8 Replies
- Last post
by Andreas Masur
- Hi
I'm having a number of linker problems with my program. I have just finished doing some large changes to the code, and now I have gone through a done all the debugging only to find that now the compiler has decided to give me trouble with linking.
I have 3 linking problem 2 of which are closly related:
1. In the object lobby.obj I get the error LNK2005: "struct _D3DREC
-
- linker error
by seekhelp
- 0 Replies
- Last post
by seekhelp
- I have XMLTranslator (dll) built using VC8 compiler using VS2005 IDE .
This dll basically imports msxml4.dll as shown below:
#import "msxml4.dll" named_guids implementation_only
When native clients using VC6 compiler link to my XMLTranslator.lib I found below linker errors in imports:
XmltxtorTest.obj : error LNK2001: unresolved external symbol "__declspec(
-
- Native Wifi
by Hendrawan Ashari
- 5 Replies
- Last post
by Hendrawan Ashari
- 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
-
- Using a Visual Studio C++ 2005 Dll in C#
by BillMathis
- 10 Replies
- Last post
by Ben Anderson MSFT
- Question: How do I expose the functions of a VS2K5 C++ DLL in C#
I have a VS6.0 C++ project that I converted to VS2K5 (C++) I want to use this Unmanaged MFC project as a DLL in C#. I have attempted the following:
I used Regsvr32 to convert this dll to a valid COM Object in VS2K5. This didn't seem to work.
I used RegAsm to convert this dll to a valid Dll in VS2K5. This didn't seem
-
- need a help for visual c++ 2003 debuging
by rcen
- 4 Replies
- Last post
by rcen
- Dear All, I am having trouble debuging using visual c++ 2003. it is very very slow, it takes 10+ minutes just loading libraies. I find out that devenv.exe is connecting to "207.46.212.122:80", which is alarming. Could somebody give me some hint on how to disable this connection i am afraid some hacker or virus is in my machine. visual c++ run ok if I disconnect network connection. So i
-
- it is neither a .NET assembly or registered Activex Control
by bxchan
- 13 Replies
- Last post
by Mike Danes
- Hi, I try to add a TestEngine.dll from CSR website to my VC++ .Net 2005 but I saw the error message below
"Could not add a reference to file ¡®TestEngine.dll¡¯ because it is neither a .NET assembly or registered Activex Control."
May I know what is the procedure to add this dll file
Very appreciate if any help provide.
Thanks.
-
- newbie in pointers - buffer manipulation
by zorpa
- 3 Replies
- Last post
by einaros
- Hi all, I am new to handling pointers and buffer in C++. I need to compact a buffer which is n bytes long. I have 2 pointers initialized to point to the start of the buffer. Once I hit the value to be eliminated in the buffer, I increment the source pointer and make it equal to the destination pointer to get rid of the unwanted value. read(char*data,int maxlen) { int readbyte = 0; char *s = data
-
- EXE
by Jangid
- 10 Replies
- Last post
by Simple Samples
- How do i check whether exe is normal standalone exe or setup exe
Regards
Manoj Jangid
-
- Template typedefs inside namespaces & compiler error C2921
by Astral
- 5 Replies
- Last post
by Holger Grund
- I seem to get some inconsistent behavior from Visual C++ 2005 SP1 when I'm trying to do some template/typedef trickery. Say I have this template class template<int n> class TemplateClass {}; then this line of code will generate compiler error C2921: typedef TemplateClass<3> TemplateClass; which makes sense, since the typedef has the same name as the template class. However, when I encl
-
- How to use Lib file(C++) in .NET
by Umeshnath
- 3 Replies
- Last post
by Alex Farber
- I have a library file (.lib) which was developed in c++, I need to use this lib file into .net
Can I convert the lib file into dll or is there any way to use this lib in .net
-
- GetAddrInfoW problem With VS 2005 Pro. SP 1, Vista 64-bit.
by sobo1
- 7 Replies
- Last post
by sobo1
- Hi all,
I am trying to compile a winsock2 application in VC++ 2005 SP 1, Vista 64-bit, and I am getting this error:
error C3861: 'GetAddrInfoW': identifier not found.
I have
#define UNICODE
#define _UNICODE
#include <Ws2tcpip.h>
I looked in Ws2tcpip.h file, and its conditionally defined as:
#if (_WIN32_WINNT >= 0x0502)
WINSOCK_API_
-
- Limit the number of lines in a multiline textbox
by Helderferreira
- 9 Replies
- Last post
by Helderferreira
- Hello!
There is an easy way to limit the number of lines in a texbox, whithout having to catch the keypress event of the textbox and limit the number of 'enter' keys
I found a post that, the solution is dealing with the EM_GETLINECOUNT message.
How i can use this message in a VC++ windows form project
thanks!
-
- Compiling from VS .Net 2k3 to VS .Net 2k5
by Programm3r
- 6 Replies
- Last post
by dedumes
- Hi all,
I have recently received code which I must re-compile, the only thing is that the code was compiled in VS 2003 .Net, and I'm trying to re-compile it in VS 2005. I'm receiving alot of errors, and I have no Idea how to fix them, could any one please help !!
Thanx in advance.
ERRORS:
Error 1 error LNK2001: unresolved external symbol " .cctor@@$$FYMXXZ " ( .cctor@@$$FYMXXZ ) Stdaf
-
- catching exception in a thread that calls another thread
by tester_abc
- 1 Replies
- Last post
by einaros
- Hi, If I'm trying to catch an exception that occurs in a thread that calls another thread, is it possible to add the try and catch statements in the root thread The problem is, I don't know when the exception will occur, sometimes in the child thread that is called by the root thread and sometimes in the root thread. Will adding a try and catch statement in the root thread help I've been experim
-
- Merging an MFC project into an ATL one.
by m_531
- 1 Replies
- Last post
by Pintu Shukla
- Dear ATL/MFC experts, I have a problem and am totally stuck. I have a project where ATL is used (non-console application, using ATL dialogue elements) and I try to add MFC support. Since Visual Studio (2005) doesn't provide func- tionality for this, I am currently trying this on the source level. I included the header files necessary, told the linker to include MFC as shared dll and it compiles. B
-
- Problem migrating to Visual Studios 2005
by mbliss
- 4 Replies
- Last post
by einaros
- I'm trying to convert a project i've been working on from eVC++ to Visual Studios 2005. The header files are in the same folder as the source files but apparently they do not exist when i try to compile. gives me a problem with my include statements saying stuff like "cannot find include file "StdAfx.h" \n Does not exist.
Any help on the matter would be much appreciated, than
-
- executing a program
by fighter92
- 6 Replies
- Last post
by Bite Qiu - MSFT
- How can I execute a program with Visual C++
-
- fwrite( issue)
by Bowljoman
- 3 Replies
- Last post
by Bowljoman
- This may be basic and I am blind so bear with me please.;p Im working with a function that writes bitstream packets to a file. My task is to write this packet to a char* buffer that will be sprintf'ed into a socket buffer. Note though, I dont need to use sprintf, thats the existing method for socket other sends. This is where the beef happens in the function delivering the packet data to a file.
-
- Constructors for global variables are not called???
by dannyge
- 12 Replies
- Last post
by dannyge
- I have a VC++ project B that is linked into a static library "B.lib". This library is linked into project A which creates A.exe. The constructors for the global varaiables in B do not get called. 1. If I have golbal variables in A then there is no problem - the constructors for those get called. 2. I f the solution (Project A and B) get linked on my coleagues computer then there is no pr
-
- Can I change the image of bmp which is in EMS memory to JPG with GDI+.
by blue-moon
- 2 Replies
- Last post
by blue-moon
- Can I change the image of bmp which is in EMS memory to JPG with GDI+.
An example is well!
Thanks!
-
- Block Images
by Sudhakar.hcitek
- 3 Replies
- Last post
by Damien Watkins - MSFT
- Hi, Iam using CHtmlView class (MFC) for displying the contents in a mail........but i have to block the images..........which are getting......dowloaded from websites........how can i do this ...........can tell me the starting point to implement this one.... Thnx in advance, Sudhakar.
-
- _CRTDBG_MAP_ALLOC does not always display filename in memory leaks
by Bill Cumming
- 8 Replies
- Last post
by Holger Grund
- I added the following to my stdafx.h per the suggestions in the link http://msdn2.microsoft.com/en-us/library/e5ewb1h3(VS.80).aspx #define _CRTDBG_MAP_ALLOC #include <stdlib.h> #include <crtdbg.h> I also added the following to my MFC app's constructor (although it seems redundant - Studio 2005 seems to dump the memory leaks with or without this): _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM
-
- How to use app.ico from app.rc?
by J. A. Love
- 9 Replies
- Last post
by J. A. Love
- How would I pull the icon listed in my app.rc and use it as an Icon object This is what I have now..
Code Snippet
System::Windows::Forms::NotifyIcon nIcon;
nIcon.Icon = gcnew System::Drawing::Icon( "app.ico" );
With "app.ico" being the icon file in my project's folder. However, if I wanted to distribute my program, this requires the user to ha