|
lot of learning today thanks for your time david..
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
you might want to check this one
DumpbinGUI^
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
Are these automation servers? A DLL doesn't necessarily have to be registered with RegSvr32 in order to work.
|
|
|
|
|
hi,
i'd like to try some assmebly instructions inside my MFC application. any assembly specialist here? i just want a small sample of it... just to display a string.
_asm
<code>Please Fill in</code>:-D
thanks.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
VivekuniQ wrote: to display a string
This is not a trivial example...
~RaGE();
|
|
|
|
|
Especially for an MFC application. Using interrupt 0x21 to display a string at a command prompt is easy enough, but not very useful. I can remember back when we used to write directly to video memory. Color was at B800:0000, and monochrome was at B000:0000.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
B800:0000, hmmmmm i remeber this number, once i tried to save the content of the screen.it came out well, but i tried in C.
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
There are plenty of examples on the Web:
http://hem.passagen.se/danma/asmprog.htm[^]
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
nice examples , can i call these codes simple inside the _asm block? a Cut-n-Paste will work??
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
VivekuniQ wrote: can i call these codes simple inside the _asm block?
Some of them *might* work. Most probably won't, however. Doing simple things like adding numbers can be done via _asm , but calling functions and most things Windows-specific (e.g., messages, GUI) are not trivial.
"The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: http://hem.passagen.se/danma/asmprog.htm[^]
Vivek, just be aware that, that's 16 bit assembler stuff on that page.
Regards,
Nish
|
|
|
|
|
yeaaa sure!
"But your mind is very complex, very tricky. It makes simple things complicated. -- that's its work. And for centuries it has been trained for only one thing: to make things so complicated that your life becomes impossible."- Osho
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
|
|
|
|
|
<br />
__asm int 3<br />
A hardcoded breakpoint.
#pragma optimize("y", on) // Force use of frame pointers
DWORD GetMyReturnAddress()
{
DWORD ReturnAddress;
_asm
{
mov eax, [ebp+4]
mov dword ptr[ReturnAddress], eax
}
return ReturnAddress;
}
#pragma optimize("", on) // Resets the optimizations Returns its own return address. I believe VC>6 has a intrinsic function to get a functions return address.
Steve
|
|
|
|
|
|
U can find out an ecopy of the book
"Let us C"
by Yashvant Kanitkar
he has given good example
for assembly coding
Oh,, but it
for console not MFC
Vikas Amin
Embin Technology
Bombay
|
|
|
|
|
I've used the following code to create the toolbar window:
<br />
hToolbar = CreateWindowEx(0,TOOLBARCLASSNAME,"MyToolbar",CCS_ADJUSTABLE|WS_CHILD|WS_VISIBLE|TBS_TOOLTIPS,0,0,0,0,hWnd,0,g_hInstance,NULL);<br />
SendMessage(hToolbar, TB_BUTTONSTRUCTSIZE, (WPARAM)sizeof(TBBUTTON), 0);<br />
SendMessage(hToolbar,TB_SETBITMAPSIZE, 0,(LPARAM)MAKELONG(32,32));<br />
SendMessage(hToolbar, TB_AUTOSIZE,0,0);<br />
I've added some bitmaps to the toolbar using several calls of
<br />
SendMessage(hToolbar,TB_ADDBITMAP,1,(LPARAM)&bit);<br />
with bit of type TBADDBITMAP
Finally added all my buttons to the toolbar using
<br />
SendMessage(hToolbar, TB_ADDBUTTONS, NUMBEROFTOOLBARBUTTONS, (LPARAM)&tbb);<br />
I've added 5 buttons to the toolbar. The toolbar is perfectly visible and I've even managed to show a toolbar for each button by returning the appropriate data in the TTN_GETDISPINFO notification message.
Now when I send the TB_CUSTOMIZE to the toolbar, I receive following notifications:
TBN_BEGINADJUST: I simply return TRUE here
Then 7(?!: I have only five buttons) TBN_QUERYINSERT notification
I've printed the iItem value of the structure NMTOOLBAR for each notification:
iItem = 5
iItem = 5 (why is this one send twice)
iItem = 4
iItem = 3
iItem = 2
iItem = 1
iItem = 0
I return TRUE for each TBN_QUERYINSERT.
And finally I get the notification TBN_ENDADJUST.
Now where did the notifications TBN_QUERYDELETE and above all TBN_GETBUTTONINFO gone too??
I hope someone can help me out here,
kind regards,
Ward
|
|
|
|
|
hello!
Dll or ActiveX is securety for using in any project?
Zo.Naderi-Iran
|
|
|
|
|
zoncpp25 wrote: Dll or ActiveX is securety for using in any project?
I don't understand your question properly, if you want to secure your DLL or activex component then this link will help :-
http://www.siliconrealms.com/armadillo.htm[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
hello every one.
my question may look *stupid*, but i'm completely aware of this.
i'm looking for a grid control that i could use in a MFC project.
As i never nedded grids in MFC before, i never searches for one. it seems that MFC library don't provide any grid control.
i already had a look at Chris Maunder grid, but wondered if there was a simple (very basic) one... i don't need much than lines, columns - and so cells to write in...
anyone ?
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
Hi tox,
I think this will be useful to you.
"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill
|
|
|
|
|
argg, i needed very basic tabular control... this one is loosing some space due to its vertical column headers...
but thanks for the link anyway.
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
Hey tox !
Maybe you can use the MSFlexGrid ActiveX control ? It is quite simple and will probably do what you need. To use it, go into project -> Add to project (if I remember correctly) and there you have to look a little bit to find the MSFlexGrid control.
|
|
|
|
|
|
Cedric Moonen wrote: there you have to look a little bit to find the MSFlexGrid control.
In MY Personel Opinion i never liked MsFlexGrid... i better use TrueDBGrid for same purpose
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: In MY Personel Opinion i never liked MsFlexGrid
Is that not what Chris said before starting with its own Grid ?
~RaGE();
|
|
|
|