-
- compiler cant find dll
by abcdefgqwerty2
- 7 Replies
- Last post
by abcdefgqwerty2
- In vs2005 .net im trying to use 3 unmanaged plain .dlls written in c++ in a plani win32 app. Ok I have a folder at the path c:\folder and inside there i have folder\include and folder\lib. I added c:\folder\lib to the vc++ library references, and the c:\folder\include to the include references. Then in the c++ additional includes I have c:\folder\includes. In linker general additional library dire
-
- .lib inclusion
by brian1900
- 3 Replies
- Last post
by Ted.
- I have an SDK for a pci card. Included in this sdk are some example programs that show how to interact with the card. there is a .dll and a .lib file. I can not see any reference to either of these files in the source code but when I compile the sample application it fails if I remove the .lib file. When I look at the Buildlog it shows the inclusion of the .lib file in a temporary .rsp file. How i
-
- Import Native C++ dll in Managed Project
by A.Russell
- 14 Replies
- Last post
by A.Russell
-
I have some code which needs to be native that I am trying to include in a managed c++ project via a pluggin.
It can't be added to references. The syntax for loading it manually, [DllImport("ArmWrp.dll")], is fine, but the functions cannot be found. Here is the simple pluggin, it is compiled with the unicode setting:
// ArmWrp.cpp : Defines the entry point for the DLL applicat
-
- How to test if a file is locked without locking it ?
by Leto58
- 7 Replies
- Last post
by Leto58
- Hi,
I have a background function that checks if a file has been released by the application that opened it, in order to process the file as soon as it has been modified, and only if it has been modified.
To do this, my idle function just tries to open the file with mode CFile:: shareExclusive (and close it right after, not to lock it) and returns if it cannot open it. If it can, it t
-
- vcredist_*.exe and SP1
by graham_mw
- 6 Replies
- Last post
by graham_mw
- I've had problems running an app which works fine on my dev machine on a number of other machines. I've installed vcredist_x86.exe on each of them but I still get "The application failed to initialize properly" errors. Using revert I have discovered the problem appeared when I upgraded my dev machine's Visual Studio (Express) to SP1. Can anyone confirm that the vcredist_x86.exe file (ve
-
- LINKER ERROR
by reena vade
- 9 Replies
- Last post
by Ramkrishna Pawar
- Hi there,
I am working on a project in VC++ and I have included all the libraries.But when I try building the project,I get an error, "LNK1104: cannot open "utility.lib".How do I remove this error
Its urgent!
Best Regards!
-
- trying to "add function" to a class
by Dalai
- 3 Replies
- Last post
by Dalai
- Using Visual Studio 2005 SP1 (C++ ActiveX Project) and I'm trying to "Add Function" to a class but get:
"Failed to return new Code Element. Possibly syntax error. New Element Name: ..."
have just re-installed SP1 but get the same. If I try and add the function manually, its ignored by the project.
Can anyone help
-
- more time for workspace file loading
by Enjoy
- 9 Replies
- Last post
by Bite Qiu - MSFT
- Hi My VC++ project being developed in visual studio 6.0 having about 100 .cpp and .h file. whenever i open the workspace, it s taking too much time(almost 5 min) to load and whenever i select any of .cpp or .h file, that also taking long time to load. I afraid, in future when i do add more classes it would end up with not able to handle the project completely. Moreover, the compilation also taking
-
- running code in Visual C++ (simple question)
by Skizi
- 14 Replies
- Last post
by Simple Samples
- I recently downloaded MS Visual C++ 2005 express and am having issues running the code. I start a new file, type in my code, and save it as a .cpp file. After that I'm pretty much stuck. I don't see compile, or run, or even build. I tried googling this and read up on some FAQs, but the most I've gotten out of them was to add the build icon to the toolbar. Though I can see build and build solution,
-
- windows.h not found...
by jwellsntr
- 14 Replies
- Last post
by miznig
- WOW, I can't believe this information isn't easier to find. I downloaded and installed Visual C++ 2005 Express, and then downloaded and installed the Platform SDK SP2. NOTHING WORKS! The Directories are not found and there is no apparent way to set them. Apparently users have found a hack to make it work, but this is crazy. It seems like the first Microsoft person to
-
- Problem with "Walkthrough..."
by kate2007
- 7 Replies
- Last post
by Simple Samples
- I am an absolutely beginner in C++. I was working on the example on the Visual C++ Walkthrough: Using the Visual Studio IDE See: http://msdn2.microsoft.com/en-us/library/ms235632(VS.80).aspxI have done every steps to build the files : Cardgame.h, Cardgame.cpp, and testgame.cpp, but when I tried to build solution, it showed that there are 22 errors:Error 1 error C4430: missing type specifier - in
-
- Math::sqrt() not cutting it
by NeederOfVBHelp
- 6 Replies
- Last post
by Damien Watkins - MSFT
- The .NET sqrt function returns double, but I need a decimal value returned (double is not accurate enough) does any one know of a squareroot fucntion that returns a decimal value
thanks in advanced
-
- Help please!
by Hellish
- 14 Replies
- Last post
by Hellish
- hello,
when i try to compile (build) a project it gives me this error:
Instance_ShadowfangKeep.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) void __cdecl HandleShutdown(class Socket *,unsigned long)" ( __imp_ HandleShutdown@@YAXPAVSocket@@K@Z )
it gives me 32 errors so a other error is like:
Instance_moltencore.obj : error LNK2001: unr
-
- Multithreading Best Practice -Queueing
by A.Russell
- 14 Replies
- Last post
by A.Russell
- I have set up a thead that loops until it receives some data before processing it. It works well enough, however it uses a lot of CPU just while it isn't doing anything. What is the best way to deal with this situation
Code Snippet
//keep thread running all all the time while(true) { //wait for there to be work in the queue workQueueMutex->WaitOne();
try
-
- windows live messenger getting r6025 error
by ghaleon92
- 1 Replies
- Last post
by Jonathan Caves - MSFT
- hi im getting this error "r6025" when i attempt to start windows live messenger. now i know normmally this error is cuase buy a fault in the code but in this instance i did not write the code. is there a way to fix i have tried redownloading the file and im getting the file from microsofts site. i have redownloaded multi times. please help if you can i need a to try and get a fix for thi
-
- Using MFC ODBC classes from multiple threads
by catrill
- 1 Replies
- Last post
by Bruno van Dooren
- On MSDN in "ODBC Classes and Threads", it says: "If you must have multiple threads manipulate the same object, you should implement the appropriate synchronization mechanisms, such as critical sections. Be aware that certain operations, such as Open , are not protected. You should be sure that these operations will not be called concurrently from separate threads." Can anyone
-
- WinAPI XP Theme
by rutski89
- 3 Replies
- Last post
by rutski89
- I'm learning the GUI bits of WinAPI and I'm trying really hard to get my example code to use the XP theme; but it just doesn't want to work.
The documentation for InitCommonControlsEx() confirms that having a manifest in your program on XP automatically enables themes, yet my app has a manifest and when I run it it's still using the Win95 style theme. I also tried to add an explicit call to
-
- How to use Rect variables
by farming
- 2 Replies
- Last post
by farming
- I use DirectShow to capture and paly video. As I used windowless mode, I developed a MFC-dialog application using VS2005, and put a Picture Control on the dialog panel. I set it a membership variable, CStatic m_hVideoWindow. After I intialized all interface instances of DirctShow, I added SetVideoPosition() method to control the video position, but there were error on function SetRect(). My method
-
- Error in PlatformSDK files
by Asif110
- 7 Replies
- Last post
by Ben Voigt
- This is again a legacy code porting problem apprently there is something in my stdAfx.h file thats causing to generate syntax erros in PaltformSDK header files (winnt.h, windef.h, etc.) here is the complete code of my stdAfx.h file
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequ
-
- Hi
by YaelS
- 5 Replies
- Last post
by YaelS
- 1) About CCombobox:
How can I set hight of the Drop down
I see only the first Item (with scroll bar), I want to see all Items.
2) How can I set to CDialog resize able = true
3) How to set tooltip in the CListCtrl
Tnx,
Yael
-
- error LNK2019: unresolved external symbol _wait_for_key referenced in function _main
by tired_mike
- 4 Replies
- Last post
by tired_mike
- Hi everyone, I am getting 345 of these LNK2019 and LNK2001 errors similar to below: kmeans error LNK2019: unresolved external symbol _wait_for_key referenced in function _main kmeans error LNK2019: unresolved external symbol _wait_for_key referenced in function _mk_birth_value kmeans error LNK2019: unresolved external symbol _wait_for_key referenced in function _draw_tree_outline_helper kmeans err
-
- Slider Control and WINAPI problem.
by bodisan2000
- 5 Replies
- Last post
by TilakGopi
- Hi, I am developing a Win32 project in which I need to use a slider control. I read on msdn everything about it, what notification message I must catch, everything, and I still can't get it to work. I am using Visual Studio 2005, with SP1 and the update for Vista. Here's is the code that's causing the problem:
Code Snippet
case WM_HSCROLL: switch(LOWORD(wParam)) { case TB_THUM
-
- Long in String
by Icywind2
- 6 Replies
- Last post
by Icywind2
- I am wondering if it is possible to put a long in a string. I mean something like this: information [**]; ** infonum Thanks for any help, Icywind2
-
- Saving a file in the same directory as the program's .exe file
by Andrew Ellis
- 6 Replies
- Last post
by AbuAlbino
- Hi,
I'm writing an application where I am saving a configuration file. How do I specify a path that ensures the configration file is written to and read from the same directory as the executable file
Thanks
Andrew Ellis
-
- VS 2005: DLL linking using Debug vs Release modes
by Dan-0
- 4 Replies
- Last post
by Dan-0
- I'm having trouble creating and linking to a DLL library from my main program, when compiling in "Release" mode. When I compile in "Debug" mode, the program runs fine. It appears that this is caused by needing to free variables and rewind files on the same side of the fence (i.e. main program vs DLL side) that the variables were malloc'd or files were opened. Can anyone tell me