|
SetCaretPos and SetCursorPos are functions you dont need to use SendMessage
|
|
|
|
|
Hi,
Thanks for the reply
I realised my mistake.
Prithaa
|
|
|
|
|
|
hai,
i have one maintance project from that .my role is ..i have to ..modify the bugs..
in which VC++ and VB are used.
now my problem is how can i debug both VC++ and VB.
plzz send me procedure..
sivaprasad
|
|
|
|
|
sivaprasadroy wrote: now my problem is how can i debug both VC++ and VB
Can you be more specific
|
|
|
|
|
I think you meant "fix the bugs" instead of "modify the bugs", right?
Anyway, this is a longshot...
Are you trying to debug C++ ActiveX controls used in a VB6 project?
If so, in VC6, load up your ActiveX control project. Click on Project->Settings, click on the Debug tab. There's a field called "Executable for debug session:". Point it to your vb6.exe, and change the "Program Arguments" to your vb6 project. Then you should be able to debug your activex control (breakpoints, etc).
I think this used to work, it's been awhile.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Exactly ... but iwill try what ur sended procedure
thanks a lot
Mr.S
sivaprasad
|
|
|
|
|
I have been doing an SDI application.I want to add an item (name of the application) to the shell context menu so that,the name of the application appears in the shell context menu when we right click on any file or folder and when i select that item the particular file or folder should be added to the application.When the application is closed that item should be deleted from the shell context menu automatically.How can i do this.
Thanks.
|
|
|
|
|
|
|
Till the last day I belived that the global variables gets initialized automatically. But last day while debugging, I found out that the application start from the WinMainCRTStartup() function. And then stepping through that function, I came accross a function like this.
<br />
_initterm( __xc_a, __xc_z );
Then I understood that it is inside this function the global variables get initialized. That means the gloabl variable are explicity been initialized.
Can any one tell me whats this __xc_a and __xc_z variables are? And how the _initterm is doing the initialization?
nave
|
|
|
|
|
It looks like __xc_a and __xc_z are arrays of function pointers - pointing to initialization
functions.
_initterm() loops through calling each function in __xc_a ... ?
It's in the runtime source code - see
crt0dat.c for _initterm()
cinitexe.c for __xc_a and __xc_z
crtexe.c for the xxxCRTStartup functions
Mark
|
|
|
|
|
|
problem about font
i write CMFont class,it inheritance CFont
e.g:
class CMFont:public CFont
{..........};
========================
CMFont font;
font.CreateFont(...);
GetDlgItem(IDC_FONTID)->SetFont(&font);
error
error C2664: 'CWnd::SetFont' : cannot convert parameter 1 from 'CMFont **__w64 ' to 'CFont *'
how to CMFont convert CFont
thank
Blog:
http://360.yahoo.com/rxgmoral
|
|
|
|
|
if you run this code what happens?
<br />
class CMyFont : public CFont<br />
{<br />
DECLARE_DYNAMIC(CMyFont)<br />
<br />
public:<br />
CMyFont(); <br />
virtual ~CMyFont();<br />
};<br />
...<br />
...<br />
IMPLEMENT_DYNAMIC(CMyFont, CFont)<br />
CMyFont::CMyFont()<br />
{<br />
}<br />
CMyFont::~CMyFont()<br />
{<br />
<br />
}<br />
<br />
CMyFont font;<br />
font.CreateFont(...);<br />
GetDlgItem(1)->SetFont(&font);<br />
|
|
|
|
|
i am sorry,i write error......
=============New===========
problem about font
i write CMFont class,it inheritance CFont
e.g:
class CMFont:public CFont
{..........};
************COMBOBOX***********
CMFont font;
font.CreateFont(...);
GetDlgItem(COMBOBOXID)->SetFont(&font);
error
error C2664: 'CWnd::SetFont' : cannot convert parameter 1 from 'CMFont **__w64 ' to 'CFont *'
how to CMFont convert CFont
thank
Blog:
http://360.yahoo.com/rxgmoral
|
|
|
|
|
Did you test my reply and what happens it did work or no
|
|
|
|
|
Friends,
Whenever we double-click a folder, a window gets open showing the contents of that folder.
I want to programtically open the window to show the contents of certain folder. How can i do so ?
Imtiaz
|
|
|
|
|
Imtiaz Murtaza wrote: a window gets open showing the contents of that folder.
Did you see ShellExecute?
ShellExecute(NULL,"open","explorer.exe","C:\\Program Files",NULL,SW_SHOW );
The above statement would open the C:\Program Files folder in the explorer view.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Do you want to make a window about it?
|
|
|
|
|
|
Now if you want to write this what do you need do you need to filenames,right?if yes you can use of FindFirstFile/FileNext for show files but before it you need to show folders on a treectrl is this your purpose
|
|
|
|
|
First of all, you fellows really need an ASM forum in this place, so I won't have to ask all of my ASM questions in here. I do tie in most of my ASM code into C++ anyway, but its just disorganized to post it this way. I've been a member for over 3 years now and no ASM board? What's up with that? Other than that, it is a wonderfully great site ...
Anyway, on to my question. I need to :
1] print out the value in the AX register
2] I prefer to do it using int 10h, service 13h
[write string with attributes]
3] I need to be able to use the basic 16 colors
4] I need to be able to print it onto the screen
at any row and column that I wish
5] I can only use BIOS interrupts, so that means
10h for video, not 21h, since DOS will not be
loaded yet.
In summary, I need to display conventional memory size, and that means using int 12h. However the memory size is returned in AX, and I have no idea how to print that. I have googled things to death, and all I can come up with is 100s of sites telling me that it is returned in AX [duh ...] but how in the #$@% do I get to see AX ??!?
If I do not get that, then I get a bunch of hoo-hah about that awful NASM and such.
Apologies for all the griping, please help ...
Any ASM and / or C/C++ programmers feel free to
contact me via Y! messenger @ digitalmythology
or via e-mail @ digitalmythology@yahoo.com ...
Thanks in advance to all ...
-digitalmythology -dm
webmaster@digitalmythologywebdesigns.com
http://www.digitalmythologywebdesigns.com
|
|
|
|
|
The memory is returned in AX, so why not do a mov to move the memory size from AX to a variable of your choice?
pusha
int 12h
mov ax, My_variable
popa
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
With the help of new ATL object i have done OLEDB connection and now table.h header file is created in my project with all the table field varaible in that...now i want to insert Data from remote server to msaccess database..but i dont know how to do coding for that..can anybody help me...to do coding...how to start..if any question pls ask and try to help me..
Thank you
|
|
|
|