|
|
Hi!
Can I use CFileDirectory to select one directory and not a file?
How?
/Ola Carlsson
|
|
|
|
|
You can use SHBrowseForFolder.
You can also simply let the user select a file, but then use only the directory portion of the path.
Even a broken clock is right twice a day.
|
|
|
|
|
When I distribute my project, and have created a .chm help file for it, which files do I need to distribute with my project? All the .html files? Plus the .chm file?
Appreciate your help,
ns
|
|
|
|
|
|
Thats really cool. I was thinking I'd have to pack along all my zillions of htmls....
Appreciate your help,
ns
|
|
|
|
|
|
Hi,
I am building software that uses the audio devices in windows.
While my program is running it is very inconvinient to have the users sound theme working (small clicks etc when opening folders and such).
Is there any way to turn that off when my program is running. I would like a way to turn it on again after my application shuts down.
Any hints?
Brest regards
/Nyrup
|
|
|
|
|
Hello All,
In my project, I am using IStorage::CreateStream(). What I am doing is creating storage, and adding a file into the stream. For that I am using CreateStream, but the problem is, if the file name is large my program is crashing. I read MSDN, that CreateStream can't handle large filename (more than 31 characters.) Its giving me an error invalid pwcsName.Is there anyway to handle this problem???
Or is there any alternative which can solve this problem. Please, help.
Thanks,
|
|
|
|
|
Sir, I have developed chat applications. One of them is Server and the another one is Client. Client initiate a connection between them. I mean both are connected with STREAME SOCKET. Client initiate connection with connect() call. But I want to make another application which runs on Client side. And whenever client chat initiate connection between client and server this new application should notify me about the connection made by client. How can I developed this new applicatoin?????
C.R.Naik
|
|
|
|
|
Chintan wrote:
But I want to make another application which runs on Client side. And whenever client chat initiate connection between client and server this new application should notify me about the connection made by client.
aka Proxy. Search CP articles for proxy.
lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
|
|
|
|
|
I have made an application that hosts webbrowser control.
The application has some problems in executing code that the frame window is moved. When the code is executed, noting is displayed and window is not moved.
Example script code is here.
<title>Test…
script test
When above code is executed, the frame window does not move and display noting.
Is there a way to fix this problem.
Thanks.
|
|
|
|
|
You answered yourself the question : you are using the web browser control, not a free Internet Explorer instance.
How low can you go ? (MS rant)
|
|
|
|
|
You need to process the DISPID_WINDOWMOVE events yourself.
Todd Smith
|
|
|
|
|
I appreciate for your reply.
Other events is occured, but the DISPID_WINDOWMOVE event is not occured.
I'm using DIID_DWebBrowserEvents2.
I think this event is occured when window was moved.
Thanks.
|
|
|
|
|
I work in an enviroment where there is no rosk of someone lifting the source code if I install the debug version of software on a machine and predictablility is more important.
The debug build of an application which works fine on a PC with VC++ 6.0 installed, yet if I run the same executable on a PC without VC++ 6.0 installed it exits immediately without doing anything.
MFC is included in the build as a static library, and source and target PCs run Win NT4 workstation.
Any ideas ?
Would you like to meet my teddy bear ?
|
|
|
|
|
The debug version links to different dlls ( the debug versions ). They are installed with VC. If you MUST go installing debug versions ( which will run slower, for a start ), do a static link, so the MFC stuff you need is included in the exe.
<edit>Oops, I see you've done a static link. I dunno then - the debug version of the C runtime library ( MSVCRT ) maybe ? </edit>
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
- Add a few message boxes in ::InitInstance().
- Load your app in MSDEV Dependency Walker, and check out the DLLs.
How low can you go ? (MS rant)
|
|
|
|
|
|
Rather than using the debug version, why not just build the release version with full debug symbols?
I disagree with your assertion that debug==predictability.
|
|
|
|
|
note that MS prohibits you from distributing the debug versions of their DLLs.
-c
"[it was..] one of those evenings when you feel that not only will there definitely be a revolution, but that the Association of Manufacturers will foot the bill."
-- Umberto Eco, Foucault's Pendulum
|
|
|
|
|
Dear All,
i have created xml stream in VC++ now i want to transfer
this xml stream to the server on sockets. i am using
CSocket class. plz if some one of you can guide
me how can i do this. if any code example is available
plz reffer it.
lodhi
|
|
|
|
|
The usual way is to use SOAP. Never done it in VC with MFC though.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
And why transfering a XML over a socket should be different from tranfering a "Hello, World" ?
lazy isn't my middle name.. its my first.. people just keep calling me Mel cause that's what they put on my drivers license. - Mel Feik
|
|
|
|
|
Daniel Turini wrote:
And why transfering a XML over a socket should be different from tranfering a "Hello, World" ?
good point
|
|
|
|