|
At it's simplest, you need to have a derived class which ignores any input messages; you can add a PreTranslateMessage function (if it's MFC) that simply returns non-zero if the message it has is an input message (WM_xBUTTONx, WM_KEYx or WM_CHAR)
Steve S
|
|
|
|
|
Hello,
NOTE:
I've posted a similar question, but I missed the way of asking it and this is why I'm asking it again. INTRODUCTION:
I need to be able to get access to a shared folder from the beggining because:
1- In our enterprise we have installed linux RH9 in our server.
2- We have logicwin (an accounts program that works on windows, not linux).
3- this program includes logred95 that is the protections server (well, I don't know it's name in english, its one program that reads the keycode from the stack in the lpt1 port of one computer and then shares the protection to the assigned pc's.
4- this program needs to reach the shared folder in the linux os.
5- I cannot access that folder before logging into the OS.
6- this means that everybody that has to work with that program needs to know the password of the user that has the physical protection installed.
7- if our accounts program could work in linux, we could be able to read our security stack from our server and, as the server is always up, theren't would be any problem.
QUESTION:
I should be able to connect to the shared unit into the server and continue being connected after the user has logged in.
Thank you in advance.
|
|
|
|
|
How do i convert for example 2B67 in base 16 to decimal in base 10??
There is no command in sprintf??
|
|
|
|
|
can you send the code sippnet how you are stored the base16 data?
P.R.A.K.A.S.H
|
|
|
|
|
I'm using libpcap, and capturing the header of each packet.
While it is a udp header, I will get the source port, byte 1 and byte 2. I'm reading one byte at the time with get(), so I cat them into one string.
Probably I have put myself in a hard position to convert the string with hexadecimal numbers to decimal
code:
int main(){
...
while(!inFile.eof)
{
inFile.get(bin);
...
if(count == 35)
{
sprintf(port1, "02X", bin);
}
if(count == 36)
{
sprintf(port, "%s%02X", port1, bin);
}
}
|
|
|
|
|
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
|
|
|
|