-
- Create Archive/Zip programming using C++
by Jai Praful Ved
- 8 Replies
- Last post
by crescens2k
- Hi there !!! I am working on a project where now I need to create a single package of files and folders together in the .ZIP format. I have searched on the internet and found out some sample code and wrapper functions. I would like to know if there are direct system APIs to get this work done. I am programming in C++ and would like to receive help for both Macintosh and Windows !! Please let me kn
-
- List iterator assignment fails, assert iterator not dereferencable
by MikeTheTv
- 0 Replies
- Last post
by MikeTheTv
- All I have a PCI card access class which basically abstracts a third party library from the higher level classes. This low level class is used to allocate locked pages of memory before doing a DMA. The third party library locks memory and returns a pointer to an internal structure, which we can simply cast to a (void *). My original intention was to have the low level PCI access class store thes
-
- Help with intellisense
by nosage
- 3 Replies
- Last post
by smeuser
- Hi,
I have a question regarding the use of intellisense. I work for a large company, and we have our own API's and functions that we'd like to have work with intellisense, specifically code completion. The API's and functions we have are defined outside of the project. They are referenced in the header files. Our goal is to allow our customers to be able to use intellisense when coding with our
-
- Link error from Command Line: LNK1561
by Thucydides
- 8 Replies
- Last post
by Brian Kramer
- Hello All:
I've looked at the online help pages for link errors when using the command line and still can't fix the error. I see the error relates to entry point not defined'. How do you define the entry point
Thanks,
PJM
-
- MSVCR80.dll
by Kittykittycat
- 14 Replies
- Last post
by TinyHowie
- I was trying to install a disc from my college classes and i keep getting this error, couldn't find libraryMSVCR80.dll (required by C:\PROGRAM~\COMMON~\MICROS~1\OFFICE12\MSOXMLMF.DLL) I have run RegCure to try and fix the problem to no avail. Any suggestions Also at start up, I get a rundell.dll error is this the problem
-
- Global memory address
by Naska47
- 14 Replies
- Last post
by Simple Samples
- Is there a way to convert a memory address from local virtual address space to it's real address
-
- Link error LNK2019 redux
by ac30boy
- 5 Replies
- Last post
by ac30boy
- I reviewed the previous thread but couldn't resolve my issue using the info there. The errors I'm getting are: Error 1 error LNK2019: unresolved external symbol __imp__SetupDiGetClassDevsA@16 referenced in function _main USBReaderC.obj Error 2 error LNK2001: unresolved external symbol _USB_1208LS_GUID USBReaderC.obj I found the lib file that contains the function and manually added it to
-
- How to 'disable' the new and delete functions in C++ class?
by UnitUniverse
- 8 Replies
- Last post
by UnitUniverse
- I like to create a C++ class, the declaration of the class is here:
Code Snippet
class CDisableHeapCreation
{
...
...
private:
void * new(size_t);
void delete(void *);
};
So I could "Not allow the user to create or to destroy this class' objects with 'new' or 'delete' functions". It doesn't work for me. I can still uses 'new' or 'dele
-
- value of ESP register after returning from call
by Joe Doyle
- 2 Replies
- Last post
by Joe Doyle
- After returning from a call instruction for a function using the __thiscall calling convention, should the esp register have the same value as it did before the call instruction was executed
-
- Loading DLL dynamically in VC++ using VS2005
by Ramjane
- 5 Replies
- Last post
by Simple Samples
- We have a application which is miggrated recently from VS6 to VS2005. Loading DLL dynamically used to work with out nay issues using following piece of code
// return NIC_DLL_NOT_INITITALISED;
m_hModule = LoadLibrary(_T( "XYZ.DLL" ));
}
if (m_hModule)
{
char * szPath = 0L;
szPath = new char [m_strDataPath.GetLength()+1];
CUnicode::ConvertToNarrowString(m_str
-
- killing all my therads on closing
by bucz
- 2 Replies
- Last post
by Ramkrishna Pawar
- I have some threads working in while loop in my application. When I close my application, I want them all to be killed. How to do that, assuming I do not store handles to them I may make a global flag like bool flagKillAllThreads and check it in 'while' condition in threads, but I am sure there is more 'elegant' method
-
- Illegal System DLL Relocation?
by Crend King (Old Pr
- 14 Replies
- Last post
by Matt Berry
- When I intend to manually load the user32.dll into memory, after loading the sections and calling its DllMain, an error message appears that the system dll was relocated in memory.
If I load it at its preferred ImageBase and thus do not do relocation, this error occurs. However, if I load it into a system choosed address (pass NULL to VirtualAlloc), no error occurs. I can confirm
-
- configure questions when using console with MFC
by DamonPeng
- 3 Replies
- Last post
by Bite Qiu - MSFT
- There are some previous console source code with MFC. Can anyone explain the difference between /MD and /MT From the documents, I get that /MT is for static lib and /MD is for dynamic lib, is that right If we choose "Use MFC in a static Library", then we must config using /MT; if we choose "Use MFC in a dynamic Library", then we must config using /MD, am I right For dll, lib or
-
- Managed C++ Mixed Assembly fails on XP (VS2005SP1)
by Olivier MATROT
- 2 Replies
- Last post
by Olivier MATROT
- Hello, I'm working with a Managed C++ Mixed assembly that works fine on Vista, both in debug and release mode. Howerver this assembly fails on XPSP2 in release mode. It Works fine in debug mode. This assemby is a DLL that is loaded from a win32 service. It is written with Visual Studio 2005 SP1. I wrote a small test program that is run in debug mode. With the DLL in release mode, here is the excep
-
- How to use a window object in other process through it's Handle
by Ajay Sinha
- 3 Replies
- Last post
by Bite Qiu - MSFT
- Hi All, Is it possible to use a window object (like calling it's API) through it's Handle in a process other than the process which has created the window I am using a third party grid in my application. I need to capture the position of a cell when that cell is activated through mouse or keyboard and send the cell position to other appication. The Grid retrieves the value of the current cell thr
-
- Mixed mode finalizer bug in C++ class destructor with std::vector member
by eldiener
- 14 Replies
- Last post
by eldiener
- I have discovered a bug when finalizing a CLR class which deletes a data member which is a pointer to a C++ class, and the C++ class has a std::vector<ANYTYPE> as a data member. When this occurs an exception is thrown, with the message in the debugger being: "An unhandled exception of type 'System.AccessViolationException' occurred in msvcm80d.dll Additional information: Attempted to re
-
- DLL was not Found
by parreg
- 3 Replies
- Last post
by parreg
- Hi All,
In building and linking a dll say XYZ.dll everything compiles cleanly, including the dll, however when I go to execute I get the following error:
"The application has failed to start because XYZ.dll was not found. Re-installing the application may fix this problem"
I deleted the dll from the project and added it again and recompiled, and still the problem per
-
- Circular Queue and Thread Safety
by Jerry560372
- 5 Replies
- Last post
by Jonathan Caves - MSFT
- I was working on Circular Queue, I was wondering if someone can give me an example to implement Circular quere which is (thread safe) and use user defined array size. How to do initialize(), enqueue(), dequeue()...
Thanks,
Jerry
-
- Can we please get a New Forum
by RayDMS
- 7 Replies
- Last post
by RayDMS
- I think a lot of people have questions that involve the microsoft visual C++ .net product that you feel is off topic. We are programming in Microsoft C++ and need a central place to get help from others doing the same. C++ seems to be the red headed step child of microsoft... Hardly any documentation on how to do anything in c++ officially exists; where as tons of information exists for your other
-
- easy question about linking. I'm stupid :(
by Albert P
- 8 Replies
- Last post
by Bite Qiu - MSFT
- I know I am missing something very easy here but I can't figure out what it is. I am new to CLR but know some C++. Anyway all I am trying to do at this point is to link from a Form to a function in another class. // testVector.cpp : main project file. #include "stdafx.h" #include "Form1.h" #include "start.h" using namespace testVector; [STAThreadAttribute] int main(ar
-
- Change a window client area size
by nimm
- 13 Replies
- Last post
by Paul Marriott
- Hi,I have non mfc project. code is pretty old and i need to do some modification. Ther is window without any border or titlebar. A lot of drawing operations are performed on this. I need to add a toolbar to this window. problem is there is lot of GetClientRect calls in the code. and if i add toolbar then drawings will go under it. The code is too complex and changing all those GetClientRect call w
-
- USB Disk Partition disappears after device eject
by Stuart Massey
- 1 Replies
- Last post
by Stuart Massey
- I'm using DeviceIOControl to create 3 partitions on a USB Disk. 1 Primary, 1 Extended and 1 Logical partition. Once the partitions have been created, and the disk properties updated I then wait for WMI to re-mount the volumes and the format them shelling out to mkdosfs.
I can then use windows explorer to copy files onto the new partitions without a problem.
However, when I eject the
-
- Problem with example for __asm calls
by RouL
- 2 Replies
- Last post
by RouL
- I tried the following example from msdn sites:
http://msdn2.microsoft.com/en-us/library/y8b57x4b.aspx
I've made a new project >> Win32-Consoleapplication selected empty project added a blanc file called main.cpp into it and copied the examplecode into it saved build project and started debug for testing it
and i got the following response:
Unhandled Exception at 0x004020a2 in asm
-
- C2679: Error - Can someone help me resolve this ambiguity?
by Simulacrum
- 10 Replies
- Last post
by Simulacrum
- Apparently the compiler can't resolve an ambiguity here between these two assignment operators. What makes these two ambiguous with one another Why can't the compiler distinguish between a parameterized type my template class Is there a way to fix this so that I can get the intended functionalities I want here in all cases I want a copy assignment operator and of course I want the smart pointer
-
- deleting geiss.dll from yahoo music
by readyeddy
- 0 Replies
- Last post
by readyeddy
- i ve seen the comments on how the windows media player worked after deleting geiss.dll in yahoo music but need some stroke by stroke instructions to accomplish this