|
|
What I download through your link is a file called:
unicows.exe
When I double click on it, it asks me 'please select the location where you want to place the extracted files'. And then it places there the files:
License.Txt
redist.txt
unicows.pdb
unicows.sym
unicows.dll
There's no proper installation done. So I guess I have to copy these in the Windows\System folder of the Win9x machine, right?
I did this and there's no change in the behavior whatsoever.
Any ideas?
n
|
|
|
|
|
I need to ask for confirmation when finishing an app, how can I process the messages sent by any way of closing an application? ("Exit" in File Menu, the cross at top-right in the window, or even using task manager)
Thank you.
|
|
|
|
|
Override ( from memory ) OnClose and only call the base method if your confirmation dialog returns in the affirmative.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
Hm. one question: how do you handle if application shuts down (user action) -or- windows shuts down? I mean, it isn't comfortable to show a dialog when system restarts.
|
|
|
|
|
Well, in that case, what *can* you do ? If your app needs to confirm shutdown, it should do so always.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
Ok, that works, I've override onclose, and it's ok. And what about killing the process from task manager, is it possible to do the same?
Thanks a lot.
|
|
|
|
|
If a process is killed, you get no say in what happens at all, it is simply stopped.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
It'd probably be fairly easy to make a bot that'd post random stupid VB questions, and nobody would probably ever notice - benjymous - 21-Jan-2003
|
|
|
|
|
<br />
<small>SOCKET server;<br />
WSADATA wsaData;<br />
sockaddr_in local;<br />
ServerStart = TRUE;<br />
int wsaret = WSAStartup(0x101, &wsaData);<br />
if (wsaret != 0)<br />
{<br />
return 0;<br />
}<br />
local.sin_family = AF_INET;<br />
local.sin_addr.s_addr = INADDR_ANY;<br />
local.sin_port = htons((u_short)20248);<br />
if (bind(server, (sockaddr*)&local, sizeof(local)) == SOCKET_ERROR)<br />
{<br />
return 0;<br />
}</small><br />
What am i doing wrong?
|
|
|
|
|
willempipi wrote:
What am i doing wrong?
Perhaps you could try creating the socket before you try to bind it.
|
|
|
|
|
|
strInsert is a std::string, szName is const char* and strValue is a std::string.
strInsert = "<";
strInsert += szName;
strInsert += ">";
strInsert += strValue;
strInsert += "\r\n";
Can anyone tell me if the above commented line f***s up the string?
The string looks like this before the commented line:
<hejsan>yahyah</
|
|
|
|
|
Verifier wrote:
strInsert += "strInsert += szName;
HUmm .. is that really what you wrote in your code ?
~RaGE();
|
|
|
|
|
nope. this is what i wrote:
strInsert = "<";
strInsert += szName;
strInsert += ">";
strInsert += strValue;
strInsert += "</";
strInsert += szName; //this line f***sup the whole string
strInsert += ">\r\n";
Can anyone tell me if the above commented line f***s up the string?
The string looks like this before the commented line:
<hejsan>yah</
And after it:
8Hsan>yah</
|
|
|
|
|
You could try
std::string strName(szName);
before your code snippet, and then only append strName.
But honestly, I have no idea what is happening to your string. You really should be able to use it this way.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Verifier wrote:
Can anyone tell me if the above commented line f***s up the string?
From what you displayed; yes it does.
Let me guess, you're using VC7 and got those results from watching the string in the debugger, not from really outputing it to the console (or something similar)?
Check the implementation of basic_string and you'll see what causes this (you might also want to search some MS NG's and see you're far from alone in having been bitten by this). An MS dude wrote some code (a debugger extension) to handle this. Should be available from the public.vc.lang NG archives.
|
|
|
|
|
Mike Nordell wrote:
Let me guess, you're using VC7 and got those results from watching the string in the debugger, not from really outputing it to the console (or something similar)?
yep. I printed out the text and it was correct.
thanks!
|
|
|
|
|
I want to use the slider control with a smaller thumb size.
I have checked all the examples of slider control, but could not find a direct way to do it.
(All the custom slider controls handle mouse events so that they can have a custom sized thumb. But I dont want to do it this way.)
Is there any direct way to achieve this, something like handling WM_MEASUREITEM. (This message is not sent for sliders )
Also is it possible to set the size of background line of slider control too?
Experts help me..
|
|
|
|
|
I need to start and stop the tomcat server using the vc++ program.Iam new to the networking concepts.I would like to know how I can do this task.lets say the server is listening as a localhost server.
Awaiting eagerly for your messages
thanking you
venki
|
|
|
|
|
Any ideas howto simulate connection which made up by RasDial()?
In order to debug my app, I've to connect & disconnect the internet every few seconds . Dya know a faster way to simulate this kind of connetion <dialup, not="" vpn="">.
Jee... thanX
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
Any ideas howto simulate connection whick made up by RasDial()?
In order to debug my app, I've to connect & disconnect the internet every few seconds . Dya know a faster way to simulate this kind of connetion <dialup, not="" vpn="">.
Jee... thanX
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
Hi frineds,
I am having a bitmap with 1280 x 1024 resolution. When I call this bmp in my program I am loosing some information because my display resolution is 1024 x 768. I want to fit this bmp into my window without loosing any information. How to do that ?? Can anybody suggest some methods??
Thanks
Satya
|
|
|
|
|
SatyaDY wrote:
I am having a bitmap with 1280 x 1024 resolution. ... my display resolution is 1024 x 768. I want to fit this bmp into my window without loosing any information. How to do that ?? (emphasis added)
What you say you want is impossible. You can't fit a bmp onto a smaller bmp without loosing information.
You have two choices: Either StretchBlt (or any other, high quality, means of resizing it) and loose information, or create a scrollable window so the user can display only a subset of the full bitmap.
|
|
|
|
|
Hi Mike,
With StretchBlt will I loose any information ?? One more doubt I want to get the coordinates of the bmp after using StretchBlt. Can I get those details ??
Regards,
Satya
|
|
|
|
|
SatyaDY wrote:
With StretchBlt will I loose any information??
As I already told; yes, of course you will. As soon as you resize an image (to a smaller size) you obviously will loose information. There simply is no way you can fit 200 bananas in a box made for only 150 without either crushing them or throwing away 50. The same goes for pixels.
One more doubt I want to get the coordinates of the bmp after using StretchBlt. Can I get those details ??
Sorry, I don't understand your question. What coordinates? A bitmap contains no coordinates, it contains pixels.
As for scaling a position from the src bmp to the dest bmp:
new_x = old_pos.x / old_size.x * new_size.x;
The same goes for y. It might help if you think of it as percentage of size instead of pixel positions, and all should be clear (i.e. a pixel 75% of the bitmap width from the left of the large bitmap is, however you scale it, still 75% of the scaled bitmap width from the left).
|
|
|
|