|
LoadIcon has been superseded by the LoadImage function. Maybe LoadImage can be better for you.
|
|
|
|
|
i find method
create ImageList - Create(48,48,ILC_MASK|ILC_COLOR8,2,1);
ImageList.Add(LoadIcon());
then ImageList.Draw(&dc,Check.Active,CPoint(0,0),ILD_TRANSPARENT);
everything worked
URAAAA
|
|
|
|
|
I'm writing a automation EXE server in VC++ 6.0 and I want to send COM/ActiveX events to the calling program... is it possible and how ?
The project was created as a MFC application with Automation support and works fine as a Automation server for my client application.
Now I just need to notify the client of events in my automation EXE application.
I'm desperately in need of help.... please help.... thanks
|
|
|
|
|
Add a sink interface to your client that sink the events fired from the server. I think there are some samples in MSDN called koala or ekoala.
Cheers,
Fredrik
<right>Sonork ID: 100.11430:PhatBoy
'It is so much simpler to bury reality than it is to dispose of dreams.'
- Don Delillo, Americana
|
|
|
|
|
Well... the problem is not the client but my server application.
How do I fire events from my (.EXE) automation server application ?
|
|
|
|
|
If you didn't like the koala samples, check here, there's plenty of articles about events.
Cheers,
Fredrik
<right>Sonork ID: 100.11430:PhatBoy
'It is so much simpler to bury reality than it is to dispose of dreams.'
- Don Delillo, Americana
|
|
|
|
|
Well... there are plenty of samples but I still can't find any which shows how to add events to my EXE automation server (MFC).
My automation server is a windowed application created as an MFC EXE application in VC++ and I want to send events back to the client when the user performs specfic actions in the window.
|
|
|
|
|
http://www.codeproject.com/com/connectionpoints1.asp
http://www.codeproject.com/com/connectionpoints2.asp
Cheers,
Fredrik
<right>Sonork ID: 100.11430:PhatBoy
'It is so much simpler to bury reality than it is to dispose of dreams.'
- Don Delillo, Americana
|
|
|
|
|
I get tooltips for every Win32 functions, MFC or my own functions... however I don't get them for OpenGL? Anyone knows why, DirectX Conspiracy?
|
|
|
|
|
|
must be a MS (DirectX) conspiracy
|
|
|
|
|
I'm working on an application which contains a class called CSpecialWnd which is a child of CWnd.
CSpecialWnd handles its own paint and timer events but I want it to be totally transparent to all mouse events. For example, if an instance of CSpecialWnd is running and it happens to be in front of a Notepad window, I should be able to click on CSpecialWnd but have Notepad still receive that click and not have CSpecialWnd get the focus.
How can I do that?
|
|
|
|
|
hi all,
I am using "mciSendString" api function to record the wave audio through
microphone.
My question is how can i capture the audio data in Integer array while recording?
Because I have to Plot the line graph(spectrum) by using these values while recording(real Time)
Please help me.
Is there any other method to Plot the graph while recording(realTime)
Thank in advance.
|
|
|
|
|
Hi !!!
I've have to build a autorun CD-Rom to automatically install my App from the CD. The installation is quite simple : I would like to copy files and folders, register the OCXs and DLLs, run a few batch files to setup some parameters, and that's all !
I started to have a look at InstallShield to do that, but it looks awfully complicated to me !!! Is it the good tool for what I want to do ? Is it possible to register DLLs, to run batch files with it and to easily copy files and folders ? Or should I just use another tool ?
Thank you for your advices....
Jerome
|
|
|
|
|
InstallShield is possibly the best tool for building installations. When I opened it first time, I found Step By Step Help topic and built the simplest installation project quickly. You can find other features simply learning InstallShield IDE. For example, to register Dll you need to set "Self-Register" feature in File Groups. The power of InstallShield is that you have standard features in IDE and can write advanced actions using script. See also WEB site http://www.installsite.org which is like CodeGuru and CodeProject for InstallShield programmers, and it has also discussion groups.
|
|
|
|
|
First of all, InstallShield is THE-industry leading company for Setup applications. Its latest Developer 7 is what you need. It can build MSI-only (MS Windows Installer technology), InstallScript-only or an MSI-InstallScript project. Naturally, the latter is the strongest of them all, but I always prefer MSI-only. It's more simple, and if I need any extra code, I scribble a few VBScript lines, which are internally supported by the Windows Installer component.
I have a lot of experience working with it. It's a monster, and many of the weird cases are a bit buggy. Luckily, you have the external utility ORCA, that helps you edit your project outside the IDE, and fix those bugs. It comes with Developer 7 on the CD.
The documentation that comes with the IDE is not sufficient. You will also have to use MSDN for the MSI documentation (and VBScript if you're going to add you're own code... and you will!).
Other good resources are the discussion boards at InstallSite.org and InstallShield.com.
Good luck!
/=/=/=/=
Deus
/=/=/=/=
|
|
|
|
|
Thank you both for your answers !!
Jerome
|
|
|
|
|
How can i extract the path "C:\Mine\VC\" from the complete path "C:\Mine\VC\abc.exe" and store it in a variable.
|
|
|
|
|
If you are using VC7 there is a class called ATLPath which you can use. Otherwise you can do something along these lines
TCHAR szPath[] = "C:\\Mine\\VC\\abc.exe";
TCHAR szDir[_MAX_PATH];
StrNCpy(szDir, szPath, PathGetFileName(szPath) - &szPath[0] - 1);
There are lot of Pathxxx functions in Shlwapi.h.
|
|
|
|
|
Using MFC:
CString strPathAndName = "C:\Mine\VC\abc.exe";
int nSlashLoc = strPathAndName.ReverseFind('\\');
CString strPath = strPathAndName.Left(nSlashLoc);
- Shog9 - Aaah... It's time to relax. You know what that means: a glass of beer, your favorite ergo chair... And of course, The Code Project loaded on your Personal Computer System. So go on, and indulge yourself, put your feet up. Lean back and just enjoy the articles. After all, CP sooths even the savage
|
|
|
|
|
_splitpath()
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
Within you lies the power for good - Use it!
|
|
|
|
|
I want my application to check for an active VPN connection.
Any ideas?
Thanks
A reasonable man adapts himself to the world. An unreasonable one persists, trying to adapt the world to himself. That is why all the progress in the world depends on the unreasonable men.
|
|
|
|
|
I am trying to build a project and I have included atlconv.h so I can do atl conversions between ansi and unicode.
My application is not using MFC BTW. I am getting the following error:
c:\program files\microsoft visual studio\vc98\atl\include\atlconv.h(48) : error C2065: '_ASSERTE' : undeclared identifier
Any ideas what the problem maybe?
thanks
|
|
|
|
|
You need to include comutils.h instead and use _bstr_t to do your conversions.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
actually sorry I had forgotten atlbase.h along the path.
thanks
|
|
|
|