|
First off im a VB man not VC so this is all very new to me,
Ok got a resource file that fails to compile:
Compiling resources...
C:\Documents and Settings\Gaz\Desktop\sig2dat3.11.a-src\sig2dat.rc (13): error RC2104 : undefined keyword or key name: WS_DLGFRAME
Error executing rc.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\giFThash.sbr': No such file or directory
Error executing bscmake.exe.
sig2dat.exe - 2 error(s), 0 warning(s)
Now i presume the first part is a c**k up somewhere in the code, but not a clue whats up with the second one,
I presume this is ok:
IDD_ABOUT DIALOGEX DISCARDABLE 0, 0, 350, 350
STYLE WS_DLGFRAME | WS_POPUP | WS_CAPTION | DS_CENTERMOUSE
FONT 8, "MS Sans Serif"
So what am i missing?
Thanks
Sorry about the n00bishness
Gaz
|
|
|
|
|
Whiterat wrote:
C:\Documents and Settings\Gaz\Desktop\sig2dat3.11.a-src\sig2dat.rc (13): error RC2104 : undefined keyword or key name: WS_DLGFRAME
Winuser.h has not been included.
Whiterat wrote:
...but not a clue whats up with the second one,
Try
here.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Oh you are a life saver, thank you thank you thank you, worked perfect, and i only posted it like an hour ago very quick!!!! thanks!!!
|
|
|
|
|
hi again,
....yeh ok im sure you are probably gettin a bit bored by my n00bishness by now, but got yet another problem......
Ok, now when i try to compile i only get 1 error and 0 warnings,
now from the looks of the error it looks like i have missed yet another include tag off,
C:\Documents and Settings\Gaz\Desktop\sig2dat3.11.a-src\sig2dat.rc (25): error RC2104 : undefined keyword or key name: IDC_STATIC
Currently i only have the following include tags:
<br />
#include <Winuser.h><br />
#include "sig2dat.h" <br />
Thanks
Gaz
|
|
|
|
|
#include "resource.h"
#include "afxres.h"
put this code into the .rc file!
Don't try it, just do it!
|
|
|
|
|
If i know the thread id, how could i get the thread handle?
In the Win2000 i can use the OpenThread API, but it's not supported in the Win98.
What could i do under the Win98?
thx.
|
|
|
|
|
What are you doing that is differentiating between the two? If the thread is the current one, use GetCurrentThread() . Otherwise, use OpenThread() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
It is THE question!
There is no way I know about. You could check how windows ME is doing it.
But I propose that you redesign your software. Where did you get the ThreadId from?
Don't try it, just do it!
|
|
|
|
|
hello i want to know the meaning of:
%u
%s
%d
%..
how many %.. symbol in c++?
thanks for the information
|
|
|
|
|
The info you're looking for is all in MSDN: printf Type Field Characters[^].
The use of the rest of the format specifiers can be found by searching through MSDN for printf or sprintf.
-----
In the land of the blind, the one eyed man is king.
|
|
|
|
|
thanks Vineas for the information,
i've found it in msdn, and i know the meaning know
|
|
|
|
|
Can anyone tell me how to discover the full path of the associated program by known extension via windows registry.
|
|
|
|
|
How about AssocQueryString() .
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hi,
I dont know whether this is the right place for this question, Please excuse if it is not so,.
I have just started programming in winsock.
How is my server intimated that one of the clients has sent it some data?
should I have a loop with the recv(....) function so that it checks continuously for incoming data?
Or are there anyother options?
(Windows is my OS)
Thanks,
Deepak Samuel.
|
|
|
|
|
Use accept() . I had a little server application that used the following functions:
WSAStartup()
socket()
bind()
listen()
accept() in loop
closesocket()
WSACleanup()
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
If you want to wade through some stuff, this link http://www.vijaymukhi.com/vmis/vmchap4.htm should show you an easier way using winsock 2 (that won't freeze your application).
wWw.KruncherInc.cOm
|
|
|
|
|
what kind of sockets are you using? TCP or UDP?
There are 4 (as far as I know) ways to get informed about incoming data.
these ways are:
- blocking sockets (call recv() and what till it returns control to your app)
- use select() to check whether there is activity on the socket
- use WSAEventSelect() to assign an EVENT to a socket and then wait for the event
- use WSAAsyncSelect() to make the socket send window messages when there is activity
If you want to create a server which has a main window, then the forth way could be interesting.
If your server doesn't have a window:
- For servers (TCP) with only few clients or UDP servers you should use way one.
- For servers (TCP) with many clients I'd prefer way two (It's also linux compatible ).
I hope I could help....
Don't try it, just do it!
|
|
|
|
|
Hello,
I want to build a NT service. I couldn't find any good articles on the subject until I came across this[^] article.
I find the class (CNTService) which the author refers to highly interesting. The only thing is that I can't download the source code. .
I don't know if you have to be a MSDN member before you can download the code.
My question is if anybody knows a similar class? If not, I guess that I've to build CNTService myself...
Thanks in advance.
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Bob Stanneveld wrote:
The only thing is that I can't download the source code.
I did not see any "download" links.
Also, try here and here.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
DavidCrow wrote:
I did not see any "download" links.
I also didn't see any download links. Maybe they appear if you are a MSDN member or something that requires you to pay microsoft...
Thanks for the links.
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
Bob Stanneveld wrote:
Maybe they appear if you are a MSDN member or something that requires you to pay microsoft...
No. It's an older article and the author just forgot the links. There are plenty of other articles with links intact. I'm also an MSDN subscriber.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
It is part of MSDN. Just search for "CNTService" and you will find a page where you can extract the source code.
Don't try it, just do it!
|
|
|
|
|
I tried searching the MSDN for CNTService, but no luck. I guess that the source code isn't availeble anymore (or never was).
Anyway, I found enough information on the subject to write my own CNTService class...
Thanks for your suggestion.
Multiply it by infinity and take it beyond eternity and you'll still have no idea about what I'm talking about.
|
|
|
|
|
it is available. I have the source code. The Microsoft Visual Studio .NET Documentation. You have to find it.
Don't try it, just do it!
|
|
|
|
|
--------------------------------------------------------------------------------
Hi all,
I seem to have hit a brick wall with trying to elimate flicker. I am using Win NT to drive a liquid crystal microdisplay via a dual port graphics card, which is integrated into an optical system.
The display alternates between two monochrome images and it is essential that the display shows a complete image during each frame.
My problem is that, although I am currently using a double buffer method (using a memory DC and BitBlting the bitmap) and have (I think) got rid of any WM_ERASEBKGND messages, I still get disastrous flicker between the alternating images. Indeed, it doesn't look like the background colour is the issue here.
If you were to watch it on screen it looks like one image gradually dominating/taking over the other and then vice versa over several thousand frames. Is there any way to fix this problem or does someone have any explanation for it? I can only think of flicker being the cause, but am open to other suggestions? Am I just asking too much from Windows?
Any help/suggestions greatly appreciated!
|
|
|
|