-
- default destructor and list iterator
by jdr5
- 4 Replies
- Last post
by jdr5
- I came across a problem with a default destructor. The problem has been distilled down in the code at the end. I have an Iterator class that is used to access std::list<>'s. The original design was that a pure abstract base class was used to provide an interface. But if I define a pure abstract base class, bad things happen. From what I can see, the default destructor does the wrong thing a
-
- converting encrypted data into hexidecimal
by vish2007
- 5 Replies
- Last post
by Simple Samples
- How can I convert each byte of encrypted data into two hexidecimal characters, so that a byte of the value of 'z' becomes the string of two characters: '7A' ,
My encrypted data is of variable length.
Also once converted I need to conver the hexidecimal back to the encrypted data So any suggestions please.
My encrypted data looks like the following
" [U | ¡ê ](%IY X/2 A9 f Qv dyyy
-
- Linker looking for .lib instead of .dll
by Anjo Gasa
- 2 Replies
- Last post
by Simple Samples
- I have two projects, called input and output. Both are set as Dynamic Link Library projects. The output project depends on the input project, and the project dependency is correctly set via the solution explorer interface. Output correctly compiles, but when it goes to link against the input project, the following error occurs: 1>LINK : fatal error LNK1181: cannot open input file '..\debug\inpu
-
- CreateProcess Issues plz help
by DrJoness
- 14 Replies
- Last post
by DrJoness
- im using a dummy.exe to create a txt file so i know if it works right away... but i think theres a problem convertin from std string to the LPWSTR in vs 2005 if there is alternate method i would appreciate any help if(first4=="EXEC"){ LPWSTR szCmdline=(LPWSTR)cl.c_str(); STARTUPINFO StartupInfo; PROCESS_INFORMATION ProcessInformation; HANDLE hPipeRead, hpRead; HANDLE hPipeWrite; SECURITY_AT
-
- How to convert from CString to LPSTR?
by EnigMa_AnGeL
- 5 Replies
- Last post
by Sarath.
- I have finally found a runaround for a previous problem, but this difficulty croppedup when i tried type casting without succession. Is there a way to copy the value in a CString variable into a LPSTR one
-
- How to change Static label text alignment at runtime
by Amr Ouf
- 6 Replies
- Last post
by Amr Ouf
- Please help me change STATIC label text alignment at runtime I have used the following but it's not working this->GetDlgItem(IDC_STATIC)->ModifyStyle(WS_EX_RIGHT|WS_EX_LEFT,WS_EX_LEFT,0); Thanks in advance.
-
- Unable to add an mfc class from a type library on a 64 bit OS
by Jacob Brandt
- 0 Replies
- Last post
by Jacob Brandt
- I'm on a XP Pro 64 bit machine and I'm trying to add an mfc class from a type library. I right clicked my project ->Add Class...-> then choose MFC Class from TypeLib and then click Add. However the wizard that is suppose to come up never does. The screen with all the template classes goes away and just comes back. I have service pack 1 installed for Visual Studio 2005. I tried this on a 32 b
-
- GetGuiResources doesn't return for many seconds
by autumnrain
- 4 Replies
- Last post
by Simple Samples
- Hi
I have a strange problem with GetGuiResources not returning to the caller for a very long time. I have seen this in many logfiles of the clients over the past year, but always discarded it as impossible. But now it has gotten much worse and the number of bug reports in that area has grown dramatiically. This makes me believe that something actually might be wrong with it.
I have f
-
- What does WM_EX_TOOLWINDOW eaxctly mean?
by Buddhist
- 4 Replies
- Last post
by Buddhist
- I googled it without any detailed info, and neither MSDN.
What's WM_EX_TOOLWINDOW/ And how does it impact focus and mouse capture
Thanks in advance.
-
- Slow std::map::clear() in release mode
by rtep
- 12 Replies
- Last post
by rtep
- Hi,
I am developing a class for reading an IP to country database from a CSV file ( http://www.ip2location.com ). I use std::map for storing all the information i get. Everything works perfect but destroying the class. The std::map::clear() function takes about 30 seconds to perform, which is terrible. The problem is, that this appears only in Release mode - in Debug mode everything is ok and f
-
- Finding include files
by Thomas Covenant
- 8 Replies
- Last post
by BobF
- Suppose I have a cpp file with the preprocessor directive: #include "myFoo.h" where "myFoo.h" is a header file that I wrote. How does Visual C++ know where to look for "myFoo.h" If I wanted to change the physical location for "myFoo.h" (for whatever reason), what would I need to do to move the file and still have the preprocessor find the file Thanks!
-
- Managed class and legacy C code
by EricksonBrian
- 10 Replies
- Last post
by Bite Qiu - MSFT
- Hi all, I've got a problem... I'm trying to define a singleton class (PCSInit) and arrange it so it can be used in a DLL. I've got a problem that I can't figure out. The class definition is:
// PCSInit.h #pragma once
#include <stdio.h> #include "pcstypes.h" #include "pcsshmem.h" #include "rtdd.h" #include "pcsproc.h" #ifndef PCS_SUCCESS #include
-
- Regarding File searching APIs
by CoolJammy
- 8 Replies
- Last post
by Andreas Masur
- Hi,
We have a set of APIs for Registry Search APIs available in MSDN.( http://www.windowsitlibrary.com/Content/595/1.html)
Can any one help me in getting all the APIs which help the developers to implement File searching operations in MSDN.
I would be very thankful to you if you can help me in this regard.
Regards,
Ravi Kumar.
-
- WinSxS MSVCR80D.DLL not found on Vista
by Keith Hill
- 5 Replies
- Last post
by Keith Hill
- I have a DLL I've built using VS 2005 (note - this project was upgraded from VS 2003). It contains what appears to be a proper manifest. However regsvr32 was failing on it so I loaded the DLL into depends (2.2.6000). What's really weird is that MSVCP80D.DLL can be located. Its properties says that it is found at:
C:\windows\winsxs\x86_microsoft.vc80.debugcrt_1fc8b3b9a1e18e3b_8.0.50727.762_n
-
- MFC: Removing sunken border from a CFormview displayed in a CFrameWnd
by Sternoceral
- 1 Replies
- Last post
by Bite Qiu - MSFT
- Hello, I'm creating a Wizard generated MFC application. The right pane displays a CFrameWnd, which in turn displays various views at different times. Whenever it displays a CFormView, there is an unsightly sunken border around its perimetre. This sunken border does not appear if I display a CListView, for example. How can I remove this sunken border Regards, Sternoceral
-
- Is this a BUG?
by gdrivas232096
- 3 Replies
- Last post
by gdrivas
- Hello to everybody,
I am working on a pure MFC project (100% native code) an in VS 2003. Recently and while I was making memory tests I noticed the following: Somewhere in the project, I am using 'GlobalAlloc' function (to load an IPicture object). And of course sequently I call 'GlobalFree'. "GlobalFree' each time it is being called, it returns another memory address (and always greater t
-
- Problem to dump xml into a file
by reneesol
- 3 Replies
- Last post
by Simple Samples
- Hi,
I have a function to dump xml object to file as
fstream in;
in.open("temp.xml", ios: ut);
in << m_doc; // m_doc is defined DOM_Document m_doc;
in.close();
Our xml renderer, created using C#, renders temp.xml to pdf file. My problem is our renderer failed to render if temp.xml has characters like c, a and I found it works if I open temp.xml using Notepa
-
- How do I allocate memory for a String^?
by Corey Was Here
- 7 Replies
- Last post
by n0n4m3
- I've created a class containing a System:: String^ variable, but everytime I try to set it equal to a value I get a Null execption error. I was just wondering if someone could tell me how I allocate the space to set it equal to another String^ value. Any help would be appreciated. Thanks.
-
- Run only one application
by idos
- 5 Replies
- Last post
by einaros
- Hi, I want to create application that can only be executed once. I mean like MSN, once you have run it and you execute it once again, the previous program window will appear. Can someone please show me how to do it Thank you
-
- VC8 SP1 compiler bugs
by LuckLess
- 5 Replies
- Last post
by LuckLess
- A bug N1
class AStrangeClass
{
char c [ 4 ];
};
template < class T >
class ATemplateBase
{
protected :
void f ()
{
//acts as lots of ATL base classes do
static_cast < T *> ( this )-> i = 666 ;
}
};
class TheClass : public AStrangeClass , p
-
- SmartBridge Alerts: Motive SB PSAPI.DLL
by JasonDunham
- 0 Replies
- Last post
by JasonDunham
- Alright, wrong forum I know, but to answer the problem with GetProcessImageFileName error. Run a search on your hard drive for psapi.dll You will see a number of files. This problem is occuring with ie7 and verizon.... big surprise heh. Anyway, rename files psapi.dll to psapi.bak. IMPORTANT do this only to the file extensions that are associated with Verizon. Don't know if this is the proper thing
-
- Multithreaded Progress Bar Application
by Paul Wheatley
- 1 Replies
- Last post
by Sheng Jiang
- I am writing an application in Visual C++ .NET that displays a progress bar on a windows form that can be cancelled/exited by the user clicking the appropriate button on the form.
This operation needs to run in its own thread in order for other tasks to take place.
I have created two threads, one that displays the form using ShowDialog to allow the buttons to be accessible and another thread
-
- MSVCM80D.DLL and MSVCR80D.DLL not found
by Ori Lahav
- 12 Replies
- Last post
by crescens2k
- Hello. I'm using a DLL in VB.NET. The DLL is made with C++ (not .NET), so I used a wrapper someone made to use it in VB.NET. It is working perfect on one of my computers, but when I try to run the project in other computer its gives an error. I checked with "Dependency Walker" the C++ DLL (not the wrapper) and its says that MSVCM80D.DLL and MSVCR80D.DLL are missing. What do I need to ins
-
- 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
-
- CryptHashData - getting MD5 string
by Talkless
- 2 Replies
- Last post
by Ayman Shoukry - MSFT
- Hi. All i want now is to get MD5 hash string of array of bytes. I do "CryptAcquireContext" and "CryptCreateHash" with "CALG_MD5". I am a bit confused with Win32 API documentation. It says "The CryptHashData function adds data to a specified hash
object ..." That's OK, now ho to get the hash value Or maybe these Crypt* functions is made not for that.. Do i