|
Is theree any decent documentation on writing DevStudio add-ins?
I want to be able to add a menu item to the context menu in the workspace ClassView tab, and then bring up my own dialog when the programmer selects my menu item.
Thanks in advance.
|
|
|
|
|
Hi, what I need is a C++ class to read/write zipfiles(jar-files). The class may not use MFC, because I'm writing the application with WTL. Any suggestions ?
|
|
|
|
|
I realise that you don't want to use MFC but there is an MFC class on this site. This may be a start for you. Otherwise try the ZLib library avaiable from all over the place.
HTH
Jerry
|
|
|
|
|
I saw the classes here at CodeProject. I don't know if it's difficult to remove the MFC-stuff. When I don't find another solution, I'll give it a try.
I also saw ZLib, but I can't find any good documentation about it to use it in VC++.
|
|
|
|
|
Try having another look at ZLib. It's not that difficult. t has some examples, one of which I think is in pure C++. There are other examples such as an ActiveX version.
Jerry
|
|
|
|
|
Try having another look at ZLib. It's not that difficult. It has some examples, one of which I think is in pure C++. There are other examples such as an ActiveX version.
Jerry
|
|
|
|
|
Hi everybody,
where do i find the RLMAN.EXE described in the MSDN to localize existing resources.
And, there must also be an UCONVERT.EXE to convert files from ANSI to UNICODE.
I have installed VC++6.0 professional, but it is not coming with it.
TIA, Chris
|
|
|
|
|
never heard of rlman.exe ... programming international apps means u have to use unicode from the start and use the generic text mapping functions ... as well as being aware of the small gotchas to do with the unicode versions of functions (like strlen giving chars NOT bytes)
look up UNICODE in the msdn and go from there
good luck
|
|
|
|
|
Are there any tutorial to implement an event sink to capture events from an ATL component? Thanks very much!
|
|
|
|
|
Hi all,
How can I receive those messages in the main dialog of a dialog based app ?
I tried with the class wizard, but the message handler doesnt get called.
Thanks all.
Carlo.
|
|
|
|
|
Try to use Window_Proc() to capture the window message.
|
|
|
|
|
Are there any good installshields you all will use usually in packaging a software? Please advise some. Thanks all!
|
|
|
|
|
Are there any good installshields you all will use usually in packaging a software? Please advise some. Thanks all!
|
|
|
|
|
Are there any good installshields you all will use usually in packaging a software? Please advise some. Thanks all!
|
|
|
|
|
I'm trying to read the clw file (programatically), and when I try the following lines of code, zero bytes are read from the file:
char sTemp[255];
int nBytes = GetPrivateProfileString("CLS:CMyClass", "HeaderFile", "", sTemp, sizeof(sTemp), "MyProject.clw");
The section name "CLS:CMyClass" exists, and the key "HeaderFile" exists within the section, but my program refuses to see it.
Could it be the colon character? (I've never seen a colon used in any other section names before this). If so, how do I get around it?
If the colon character isn't the problem, what could it possible be?
|
|
|
|
|
You need to give the full path to the file as the last param to GetPrivateProfileString() . Using just "MyProject.clw" makes the API look in the Windows directory for the file.
The INI file APIs also have a hard limit on the file size, 32K or 64K (I forget which). Is your file larger than that?
|
|
|
|
|
Well, I gave just the filename in my example because it resulted in less typing.
I don't know how big a .clw (class wizard) file can get, but the one I'm working on is only 2k at the moment.
I know that the file is being read correctly because I check the "General Iffo" section to find out how many classes are in the clw file and what their names are. The next step is to find out what the associated cpp/h file names are, and this is where reading the .clw file is falling flat on it's face.
I guess I *could* just read all the section names and parse them that way, but what a royal pain in the ass...
|
|
|
|
|
I found the problem - I had the 3rd/4th parameters in the call to GetPrivateprofileString swapped around in my code.
Duh....
|
|
|
|
|
I have recently subclassed an edit box,and capture the WM_CHAR events. I want the dialog that houses the edit box to know a user defined message when I detect certain string in the edit box.
How can I send a message back to dialog? I have tried SendMessage with GetParent() as a handle, but it does not work. Does anyone know how to do this? Thanks all!
|
|
|
|
|
How to add new button (beside min, max and close) to the right side of a caption bar? Any hints?
|
|
|
|
|
look for help about this function:
CDC::DrawFrameControl
Mike
|
|
|
|
|
Do you know how to get the working directory of a process? Do I need to access some shell objects in order to get the working directory of a process? Thanks all.
|
|
|
|
|
The current directory of your own process can be retrieved with GetCurrentDirectory . Is that what you were looking for?
|
|
|
|
|
Mike's right - though sometimes you may want to get the dir in which your app (or another) resides, in order to _make_ that the working dir (we don't always have a choice as to how our apps are invoked via shortcuts etc.).
GetModuleFileName will return the full path to the location of the exe or dll, and you can go from there.
|
|
|
|
|
Hi all,
Please help,
Can anyone rell me how to color text ina c++ consol application run in a dos window. I have tried all ways, and have had know joy.
What #include file and how?
Any help would be really accepted.
|
|
|
|