|
i guess this should be apporch
thing are ok but with slight modification.
while(!inFile.eof)
{
inFile.get(bin);
...
if(count == 35)
{
sprintf(port1, "&d", bin);
}
if(count == 36)
{
sprintf(port, "%s%d", port1, bin);
}
int no = atoi(port);
}
P.R.A.K.A.S.H
|
|
|
|
|
When debugging a VC++ app , the stack frame is empty. any idea what settings need to be applied for this. OR What could be the cause for this?
|
|
|
|
|
I don't want to state the obvious but have you checked it is a Debug Build and not a Release Build?
Neville Franks, Author of ED for Windows www.getsoft.com and coming soon: Surfulater www.surfulater.com
|
|
|
|
|
Hi Guys,
I didnt Get an answer to this from anyone.Thats Why reposting it again...
Iam displaying overlays to screen using the DeviceContext.I display it to screen by calling the "PlayEnhMetaFile" Function.Everything worked fine until I Tried to load an emf File which contains slanted Lines.When I run my application & load this Emf file everything is fine.But when I scroll the emf file using scroll bars,the lines appears like ZigZag,not slanted any more.This problem seems to appear only when the slanted lines goes away from the clientarea while scrolling & comes back again(ie: when Iam doing a Repaint).......
Any idea what could be the cause...
Thanks..
|
|
|
|
|
In MDI application, Ctrl+Tab is the default accelerator to switch childframe, and Ctrl+F4 is the default accelerator to close active childframe.
My question is: where can I find the code that MFC implements this function, or how can I change the default behavior?
|
|
|
|
|
all you need to do is add a accelerator i.e ctrl tab to new command_id
P.R.A.K.A.S.H
|
|
|
|
|
Thank you for your reply.
If I want reuse the implemention of the ctrl+tab function, how can I do?
|
|
|
|
|
humm
how exactly do you want to reuse and if you dont mind can you say what exactly is ur problem, may be there could be a better solution than overridding the default implementaion.
I belive if you try to change the functionality of the key combination it will alter the way the windows UI works and probably will fustrate the user.
P.R.A.K.A.S.H
|
|
|
|
|
Sorry for my poor English, I can't describe it detailed.
I think I've solve this problem. I remove the WS_OVERLAPPED style of my CMDIChildWnd derived class. It seems I can use other method to switch childframes just as ctrl+tab does.
Thank you for your patience!
|
|
|
|
|
The framework can load some resources for the childframe automatically, such as menu, icon, accelerator and so on. Is there any mechanism to automatically switch toolbar in the framework? If there's none, how can we implement it?
|
|
|
|
|
Hi friend,
Can you help me, I wanted to create a Simple Class Window: Methods are Window.Open and Window.Close, also it can display shapes like Rectangle, Cirlce, Ellipse... This is my project in C++ Class Window basics.
Your frined,
TP
|
|
|
|
|
Hello!
Go ahead and check this website out: http://www.relisoft.com/win32/. It has a tutorial on writing win32 base code in c++ framework. Hope this can at least get you started on your project. Oh, and about wanting to be able to draw certain shapes look at this website: http://www.gametutorials.com/Tutorials/Win32/Win32_Pg1.htm. Download the example code under "Drawing Shapes Using GDI" on the website. Hope that helps!
Later,
Caleb
|
|
|
|
|
hi guys,
is there any tutorials relate to how to pass variables from normal c++ program to inline assemble?
and how to change it from character form or integer form to binary form?
thank u very much in advance! =)
|
|
|
|
|
humm
main()
{
int x=6;
asm
{
mov ax,x;
mov x,69;
}
}
This doesnt work??
P.R.A.K.A.S.H
|
|
|
|
|
but when i use
main()
{
int x=6;
asm{
mov dx,37Ah
mov al,x
out dx, al
}
}
i always get a error message "operand size conflict"..
i really dont know wat's going wrong in here, since it's my first time to use inline assemble
thank u =)
|
|
|
|
|
jfk_lili wrote:
mov al,x
its wrong,
al is 8 bit, int is 16 bit,
you should do
mov ax,x
out dx,al
P.R.A.K.A.S.H
|
|
|
|
|
but after i hv changed the code to wat u suggest, it still got such a error message. relate to "out dx,al". it's still a "operand size error"
|
|
|
|
|
Gees
I dont know why its not compiling i know the instructino is valid.
sorry i cant help you more, i am out of ideas
P.R.A.K.A.S.H
|
|
|
|
|
en, never mind. Thank U very much for ur help =)
really appriciate ur help
|
|
|
|
|
now i hv found the reason for the error, the machine is 32 bit, so the int is actually 32 bit long, to get 16 bits, we need to declare it as "short int"
thank U Prakash
|
|
|
|
|
Good!!!
I learned something new today
P.R.A.K.A.S.H
|
|
|
|
|
hi everyone,
I have problem here:
I am writing a program to capture a certain area of screen frame(by GDI functions) and by which to create an AVI file.
The program works fine while compressed by "Microsoft Video 1" format but I can not use "Indeo video 5.10" for the compression format.
When I set the "AVICOMPRESSOPTIONS.fccHandler = mmioFOURCC ('I', 'V', '5', '0' );" and run the program, it returns an error from "AVIStreamSetFormat ()".
It seems that the encoder does not compatible with the source data ?
I downloaded the "Indeo" codec at "http://christophermolloy.com/photo/iv5setup.exe ".
I don't know it was because the "Indeo" codec I downloaded was not correct or beause it has special source data format requirement that it doesn't work.
Can anyone give me a clue about this or give me a pointer to some related information ?
My software environment: OS: Windows 2000 professional + SP4 Compiler: VC++ 6.0 + SP5
Thanks in advance !!
|
|
|
|
|
is there a DirectX forum like this forum somewhere?
thanks for any links
includeh10
|
|
|
|
|
try msnews.microsoft.com news server,
P.R.A.K.A.S.H
|
|
|
|
|
i tried but the site doesn't exist.
something wrong?
includeh10
|
|
|
|