|
Thanks. Now I should use you as a beta-tester for it
Best regards,
Eugene Pustovoyt
ICQ UIN: 161325180
|
|
|
|
|
Please could someone help me.
All I'm trying to do is send Ctrl Alt and Del in my code, but really struggling!
Could someone help me. Sample code would be nice.
Really appreciate any help.
Thanks.
Rich
|
|
|
|
|
Try [SendInput] api!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
What are you trying to accomplish?
Lock workstation:
Check LockWorkStation
Log off/Shutdown/restart:
Check ExitWindowsEx
Or for the joy of sending Ctrl Alt Del:
Check SendMessage & PostMessage
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
I've created a On-Screen keyboard.
I want to use it to Logon to windows. So I've created a CAD button.
But really struggling? Tried several methods but no success.
Thanks for any help
Rich
|
|
|
|
|
Ctrl-Alt-Del is a special key sequence in the NT kernel.
Search the MSDN for GINA.
Kelly Herald
Software Developer
MPC
|
|
|
|
|
Thanks for all your help
Regards
Rich
|
|
|
|
|
I would like to add a small text entry on the continuation of the menu bar under MFC. To do this I need to get a handle to the Menu bar.
Is there a way to do this, or is there some other way to add a small text entry after the menu items?
Thanks,
Ilan
|
|
|
|
|
|
I want to make Window application with Boehm GC.
I can build well when I make it in a console application.
The following errors come out when they make it in Window application.
Please teach a method to make in Window application .
Thank you very much.
-----------------------------------
Error contents
There is not the function that was able to leave overload to have three arguments by a New operator
-----------------------------------
class hoe : public gc
{
public:
char p[0x100];
};
void CTest3Dlg::OnButton1()
{
while(1){
hoe *h = new hoe ;
}
}
|
|
|
|
|
Well, this is going to blow out your stack in a few seconds, why do you want to do that ?
Try hoe * h = new hoe(); Your error message makes no sense though, your compiler is getting very confused, if this is all of the code.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Movement environment
Environmental VC++ V6.0 SP4 (japanese)
Boehm GC V6.4 http://www.hpl.hp.com/personal/Hans_Boehm/gc/
>Well, this is going to blow out your stack in a few seconds,
>why do you want to do that ?
If Boehm GC works normally, memory leak cannot occur.
>Try hoe * h = new hoe();
An error to compile (+_+;;
>Your error message makes no sense though, your compiler is
>getting very confused, if this is all of the code.
Translation seems to have been bad.
Just.
The compile error is "error C2661: 'new' : no overloaded function takes 3 parameters"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#include "stdafx.h"
#include "test3.h"
#include "test3Dlg.h"
#define GC_NOT_DLL
#include gc_cpp.h
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
class hoe : public gc
{
public:
char p[0x100];
};
void CTest3Dlg:: OnButton1()
{
hoe *h = new hoe() ;
}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Thank you very much.
|
|
|
|
|
I was able to build when I made the following orders comment out.
-----------------------------------------------------
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
-----------------------------------------------------
However, an error to build at the following points of CArray is given this time.
-----------------------------------------------------
m_pData = (TYPE*) new BYTE[nNewSize * sizeof(TYPE)];
d:program filesmicrosoft visual studiovc98mfcincludeafxtempl.h(330) : error C2665: 'new[] '
d:program filesmicrosoft visual studiovc98mfcincludeafxtempl.h(1566): 'void __thiscall CArraystruct tagTCmtYka,struct tagTCmtYka:: SetSize(int,int) '
-----------------------------------------------------
TYPE* pNewData = (TYPE*) new BYTE[nNewMax * sizeof(TYPE)];
d:program filesmicrosoft visual studiovc98mfcincludeafxtempl.h(370) : error C2665: 'new[] '
d: program filesmicrosoft visual studiovc98mfcincludeafxtempl.h(1566): 'void __thiscall CArraystruct tagTCmtYka,struct tagTCmtYka:: SetSize(int,int)
-----------------------------------------------------
|
|
|
|
|
I'm curious of how to paint the CTreeCtrl transparently, this means how to create a CTreeCtrl in existed view without cover its content.
just like CATIA's GUI, but I'm frustrated, I have no idea.
Best Regards
|
|
|
|
|
The tree control does not draw transparently. If you wish to make it appear otherwise, there are two feasible ways of doing so:
1) draw it yourself, and do it transparently. The control has a rich custom drawing API, and this is actually not too hard. The downside is, there's the possibility you'll forget to draw something correctly in an uncommon situation, or a new (or old) version of the tree will draw itself in a significantly different manner, leaving your custom-draw code producing very odd results.
2) let the tree draw itself onto an in-memory bitmap, then draw this bitmap to the screen while masking out the background color. This can be slower, and you really have to work to handle all the places where the tree tries to draw itself (hint: disable animated expand/collapse), but should be fairly bullet-proof once you're done with all that.
You must be careful in the forest
Broken glass and rusty nails
If you're to bring back something for us
I have bullets for sale...
|
|
|
|
|
I'll try to fullfill it, thanks for your helpful ideas.
Best Regards
|
|
|
|
|
Hi all,
I have a dll and an exe that calls that dll.
I want to find out which are the functions implemented in the dll and which are their parameters in order to use it with a project that I will develop.
Any idea about how to do it? Is there any tool?
Thanks in advance
|
|
|
|
|
What you are trying to do is called reverse engineering.
Dependency walker would give you the names of the exported functions from the dll (if any)
You need an assembly level debugger, try playing with OllyDbg.
You would need a good ASM knowledge and a lots of patience.
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
Hello Guys,
I am too new to WIN32 programming. But knowing my fundamentals right in C,C++ i think the below 2 statements are absolutely fine:-
SOCKET m_socket;<br />
m_socket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );</
b>
SOCKET is a typdef of unsigned int
But when i compile this Win32 application it gives me an error on the second line that is the line:-
m_socket = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );
The error is that "error C2065: 'm_socket' : undeclared identifier"
I am unable to understand why this error, reading some other documents i tried to rectify this ERROR by adding the word SOCKET before M_socket, but then that means multiple declarations of the same variable, and i thought it would give an error but rather it gives a warning..
" warning C4101: 'm_socket' : unreferenced local variable' "
I dont know how to solve this.
Any help regarding this would be highly appreciated.
Thanks in advance,
Zalak Dedhia
Zalak Dedhia
|
|
|
|
|
Did you included the "Winsock2.h"?
|
|
|
|
|
Hey thanks eli15021979,
I had included the Winsock2.h
I got my mistake when i was reading my code carefully.
Thanks and Regards,
Zalak Dedhia
|
|
|
|
|
Hi Friends,
Please check following examples:
Example 1:
class Base1{
public:
int data0;
};
class Base2:public Base1{
public:
int data0;
};
class Derived: public Base2{
public:
int data0;
};
void main(void){
Derived D;
Base1 *bptr1= &D;
Base2 *bptr2=&D;
}
In above case :
Address of D=0x0012ff74;
Address of bptr1=0x0012ff74
Address of bptr2=0x0012ff74;
Now exmaple 2:
class Base1{
public:
int data0;
};
class Base2{
public:
int data0;
};
class Derived: public Base1,public Base2{
public:
int data0;
};
void main(void){
Derived D;
Base1 *bptr1= &D;
Base2 *bptr2=&D;
}
In above case :
Address of D=0x0012ff74;
Address of bptr1=0x0012ff74
Address of bptr2=0x0012ff78;
My question is why the base2 pointer has different address in above situation?
I have posted this long back but didn't get satisfied answer ..reposting...
VikramS
|
|
|
|
|
It is easier if you look at how the object is being built.
Base1: 4 bytes (for Base1::data0)
Base2: 4 bytes (for Base2::data0)
Derived: 12 bytes (for Base1::data0, Base2:data0, Derived::data0)
When you look at what is being allocated you see that object D is:
[[Base1::data0][Base2::data0][Derived::data0]]
So the address of:
- D is at offset 0.
- Base1 is at offset 0 because it is the first defined base class for Derived.
- Base2 is at offset 4, it adds to Derived by being tacked on after Base1.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
I meant to say that
Why it different for Multiple Inheritance case only?
|
|
|
|
|
In the first example, since B2 inherits from B1, the address of B2 is the same as the address of B1.
Think of them as circles.
In example one, B1 is a circle. B2 inherits B1 so B2's circle encircles B1. D inherits from B2 so D encircles B2.
In example two, B1 is a circle. B2 is also a circle that doesn't encircle B1. D inherits from both B1 and B2 so D encircles both B1 and B2. However, since B1 and B2 can not exist at the same location in D, one of the two must follow the other. Thus B2 has a different address.
Tim Smith
I'm going to patent thought. I have yet to see any prior art.
|
|
|
|