Hi, Im trying to create a self extracting file. I have managed to do it for my home computer by getting the program to open a file pointer to its own exe file, but when i do this on other computers, I get a sharing violation. Is there a way around this? Cheers
Dor
Posts
-
Self extracting files -
how to get the number of digitsyou won't get the fractional part in y because it is an int.
-
Getting the number of local drives on a systemDoes anybody know how to get the number and letters of local drives on a system?
-
Menu messagingYou may be using a library that is installed when you install VC++. Try compiling your project with a statically linked library instead for shared DLL.
-
CFileFindHi, I want to find a file that could be in any directory in any of the local disks. CFileFind find relies on specific directories. Is there an easy way to do this, or do I need to hack something up? If I need to hack something, does anybody know how to get a list of the drives? Cheers
-
Dynamic MenusHi, I have created a dynamic menu, but now im not sure how to get the menu item to respond when they are clicked on. The items are created by the user at run time. Is there a simple solution to this? Cheers Dor
-
Shortcut keysHi, Does anybody know if there is an easy way to assign a shortcut key to a menu item, and if there isn't an easy way, is there a way that doesn't go through PreTranslateMessage function? Cheers Dor
-
problem using tab controlAll i know is that i created a dialog box, then put a tab control in that. You have to make sure that you create and show the dialog that holds the tab. I don't know what else to say sorry. The only way i can help you further is to see your code. Dor
-
STL problemCool, Thanks heaps for you help Dor
-
STL problemBut the
#include
only appears once in the project. should i be usingusing namespace std;
with this version, and should it appear in the header file of the class, and should it be global or local to the class? sorry, im bombarding you with questions! Cheers Dor -
STL problemWell, i include all the right things and it gives me this error on the line that i declare the list object on: c:\program files\microsoft visual studio\vc98\include\ios.h(146) : error C2872: 'streambuf' : ambiguous symbol I know that the code works when its not using MFC, this error only comes up when in an MFC project Cheers Dor
-
STL problemHi, Im trying to use STL in my MFC program in VC++. It keeps on giving me errors. Im sure there is a simple way to fix it, but i have no idea what that way is. Can someone help? Cheers Dor
-
problem using tab controlHi there, When ever ive used tab control, ive used something similar to the following code:
CTabCtrl m_MainTabCtrl; TC_ITEM TabCtrlItem; TabCtrlItem.mask = TCIF_TEXT; TabCtrlItem.pszText = "Tab1"; m_MainTabCtrl.InsertItem( FILE_RESULTS_VIEW, &TabCtrlItem ); TabCtrlItem.pszText = "Tab2"; m_MainTabCtrl.InsertItem(FILE_SCAN_VIEW , &TabCtrlItem);
This will show the Tabs only, I then insert a CDialog and show and hide the dialog as needed by the tabs. Hope this helps. -
CList troublesHi, Im trying to put a CList into a struct or class and include that in another CList, does anyone know how to do this whithout getting errors? Cheers
-
Update MenuYou may want to try using RedrawWindow instead. You could also try using the UPDATE_COMMAND_UI which is called continuously when the menu is displayed. Hope that helps Dor
-
Nested CListsDoes anybody know if you can have nested CLists. Ive tried putting a CList into a struct and then making a CList of that struct but it gave out a whole lot of errors. Cheers Dor
-
File Associationsthanks
-
File AssociationsDoes anybody know how to or even if you can register file associations in VC++. for example, when you double click on a .doc, it will open in word. that kind of stuff, i know you can do it in InstallShield, but is there a way to do it in the code? Cheers Dor
-
Bad bad service :-(I had a simmilar problem, but it related to the Access database and i wasn't using a socket connection. It turned out that the ODBC driver you need to set up on the ODBC Cad 32 was out of date and the program just sat there chewing up processing time and ram... I don't know if this is your problem, but you could try to look at Access connection for the fault. Good Luck Dor
-
running exesI know this is a simple question but i can't seem to find the answer on MSDN. Does anyone know how to run an exe with a command line style argument out of an MFC program? Cheers Dor