|
So, when do we see the article?
Iain.
|
|
|
|
|
It is considered good form to include links in a clickable form : http://getic.njoydeco.com[^]
__________________________________________
a two cent stamp short of going postal.
|
|
|
|
|
I have err : error spawning cl.exe What that's means? How should i do? That's in VS7, when i want to compile VS6 project.
|
|
|
|
|
Cl.exe is the actual compiler. It's a console application. Msdev.exe is the IDE that spawns cl.exe when it needs to. It sounds like the environment variables are not quite right. How long has this been happening (i.e., have you ever compiled successfully)?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
that's first time this message appears. I ryed to compile glut-3.7.6.
|
|
|
|
|
I am trying to print what looks like a ruler in mirror image. Using SetWorldTransform, everything works out fine on the display, but when performing print or print-preview, the mirror image text is simply rendered as upside-down rather than mirrored.
Simple testcode follows that simply creates a triangle with the word test.
I've tried different fonts as well. The only way it appears to work correctly outputting to the printer is if you use MM_TEXT mapping.
Any ideas out there?
TIA
Eric
<br />
void CTransformView::OnDraw(CDC* pDC)<br />
{<br />
pDC->SetMapMode(MM_LOENGLISH);<br />
SetGraphicsMode(pDC->m_hDC, GM_ADVANCED);<br />
XFORM XForm;<br />
::ZeroMemory(&XForm, sizeof(XFORM));<br />
XForm.eM21 = 0;
XForm.eM12 = 0;
<br />
XForm.eM11 = -1;<br />
XForm.eM22 = 1;<br />
XForm.eDx = 200;<br />
XForm.eDy = 0;<br />
SetWorldTransform(pDC->m_hDC, &XForm);<br />
<br />
pDC->MoveTo(50, -30);<br />
pDC->LineTo(160, -10);<br />
pDC->LineTo(160, -120);<br />
pDC->LineTo(50, -30);<br />
pDC->SetTextColor(RGB(0,0,0));<br />
<br />
CFont num_font_upper;<br />
num_font_upper.CreatePointFont(4, "Arial"); <br />
CFont *pFont = pDC->SelectObject(&num_font_upper);<br />
pDC->TextOut(50,-30, CString("test"));<br />
pDC->SelectObject(pFont);<br />
}<br />
|
|
|
|
|
It appears that simply calling
SetGraphicsMode(pDC->GetSafeHdc(), GM_ADVANCED) Will cause this bug to appear, even without any tranformations. This renders theword 'test' upright on screen and upside-down on print-preview or printout.
Am I missing something here?
TIA
ERic
<br />
void CTransformView::OnDraw(CDC* pDC)<br />
{<br />
pDC->SetMapMode(MM_LOMETRIC);<br />
SetGraphicsMode(pDC->GetSafeHdc(), GM_ADVANCED);<br />
<br />
CFont num_font_upper;<br />
num_font_upper.CreateFont(.4 , 0, 0,0, FW_NORMAL, FALSE, FALSE, 0,<br />
ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS | CLIP_LH_ANGLES,<br />
PROOF_QUALITY, VARIABLE_PITCH |TMPF_TRUETYPE|FF_DONTCARE, "Ariel"); <br />
<br />
CFont *pFont = pDC->SelectObject(&num_font_upper);<br />
pDC->TextOut(100,-400, "Test");<br />
pDC->SelectObject(pFont);<br />
<br />
return;<br />
}
|
|
|
|
|
please show me the way to change the text color in the button.
thanks...
|
|
|
|
|
It might not be possible. MSDN states that it must have the BS_OWNERDRAW style. At that point, the button's owner can handle the WM_CTLCOLORBTN message. However, the text color of a push button applies only to its focus rectangle; it does not affect the color of the text. Make sense?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I've got this program that has a box that lists all the available serial ports on a computer. Right now, it is listing COM1, COM2, COM3, and COM4. The computer actually only has COM1 and COM2. I looked at the code a little and noticed that it is getting the available serial ports from "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports" in the registry.
I can easily get the program to build a list from "HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM" instead.
My question is... why are COM3 and COM4 listed in "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Ports"? WHat is the purpose of this key?
Also, is there another way you guys would construct a list of available serial ports?
Freiheit ist von Gott, Freiheiten vom Teufel.
|
|
|
|
|
waffleman wrote:
Also, is there another way you guys would construct a list of available serial ports?
I would be inclined to use the Win32_SerialPort class.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
COM ports in windows are very much a name given for serial communication by which application can communicate with the hardware using createfile(...) api.
for example when you connect a mobile phone to the computer using bluetooth on the USB, the bluetooth driver "exposes" the devices as a com port to the application. Similartly you must have been connecting some device to the pc. and that devices driver has created additional com port, in win2k i can assign my physical comport1 to COM25 or any other no but not greater than COM25.
I'll write a suicide note on a hundred dollar bill - Dire Straits
|
|
|
|
|
Weird aint it! I am not sure about modern Windows, but in the DOS/Win31 days; COM1 & COM3 mapped to the same address space (range), the same was true about COM2 & COM4. This may have something to do with you results.
INTP
|
|
|
|
|
kkkkfkkjlk
alert("hello");
|
|
|
|
|
Oh no, a script kiddy!
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
alert("not working here, try on some VB forum");
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I am trying to learn C and c++.I am okay at both.I am 13 and want to be a programmer for games but I do not know how to get started plus I am not that great of a programmer
(There are some things about programming you can't get from a book).I would like to know where to go to get started and where to get tutorials for programming.So if anybody knows any good sites I'd be hap[py to know.
K.G.
|
|
|
|
|
kyleiscool2004 wrote:
I am trying to learn C and c++.I am okay at both.
That's a broad request. What do you want to know about specifically?
kyleiscool2004 wrote:
I would like to know where to go to get started...
Didn't you earlier state that you were okay at both? It sounds like you've already started. Do you know how to declare variables and assign values to them? Do you know how to get input from the user? Do you know how to output (formatted) data to the screen? Do you know how to open/close files? Do you know how to create a function and have it return a value? Do you know how to create a for/while loop?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
DavidCrow wrote:
Didn't you earlier state that you were okay at both? It sounds like you've already started. Do you know how to declare variables and assign values to them? Do you know how to get input from the user? Do you know how to output (formatted) data to the screen? Do you know how to open/close files? Do you know how to create a function and have it return a value? Do you know how to create a for/while loop?
When I said: I would like to know where to go to get started...
I meant learning techniques in game programming?
I am okay at programming,Yes,But i want to know some advanced techniques.Such as how to change the way an image looks and how to make the charachters look as if they are alive.thanks.
kyle
|
|
|
|
|
kyleiscool2004 wrote:
I would like to know where to go to get started...
I meant learning techniques in game programming?
Understood. I should have read a bit closer. As I've never programmed games, I'm not much help. Maybe a walk-through of DirectX would prove useful.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
A good site would be
www.gamedev.net[^]
Check the Resources (for beginners)
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
http://nehe.gamedev.net/ - openGL
|
|
|
|
|
Thankd for showing me this website.It helped alot.
|
|
|
|
|
Glad to help
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
hi there,
you must first learn how to be a programer
1]get some stuuf in computer scince
a)http://computer.howstuffworks.com/
( to learn how computer hardware works)
b)get some free books in programming from
(http://www.maththinking.com/boat/computerbooks.html)
to learn about how to write a good algorith.
2]learn visual c++
3]get microsoft directx sdk,opengl sdk & some modern game design book.
after doing that you will be a great games programmer
|
|
|
|