|
Oh well, you could get CListCtrl rect as a window one, and then modify it and set that rect, or with GetSubItemRect, for example, or GetItemRect.
That way you will be able to modify rectangles into the control.
Hoping it helped...
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
Tx for your really fast replies!!
But with GetItemRect I _get_ the rect; I want to _set_ it! So CListCtrl knows the different sizes of the items, so it can arrange it good. And so I can use that rect (and position) in the ownerdrawn function.
-------------------------------
Greetz,
MG
|
|
|
|
|
I am not sure, but I think that you can retrieve the rectangle that you want to make bigger and later modifying it, you will be able to set it into the control, there must exist different ways. I must leave now, in 2 hours or 3 I will come back and try to reply you. Bye for now.
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
Using your Visual C++ tools - dependencies checker to check which DLLs are needed.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
hi, all
I'm into CMainFrame, using menu I how want to open a CScrollView... how!?
thanks
|
|
|
|
|
Hello,
when coding in inline assembly, an 'ax' register is 16-bit wide, an 'eax' can contain 32 bits, but what's the register name of a 64-bit register?
Thanks in advance
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
its eax and edx
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
So there isn't a register "evolution" like from ax to eax? Isn't there something new like eeax?
Thanks for your reply
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
the 64-bit register of EAX is called RAX.
Don't try it, just do it!
|
|
|
|
|
That's what I was looking for!
Thanks!
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
64bit what? There are two completly different platforms. IA-64 has 128 64 bit integer registers and AMD64 has 16 64 bit registers. As far as AMD64 I don't believe there is any microsoft compiler support and you probably have to be running 64 bit windows XP which is currently only a beta version. I have the AMD64 docs and the registers are (RAX, RBX, RCX, RDX, RSI, RDI, RBP, RSP, R8, R9, R10, R11, R12, R13, R14 and R15).
John
|
|
|
|
|
you're talking too bragging... sorry
Don't try it, just do it!
|
|
|
|
|
No clue what you mean.
John
|
|
|
|
|
help me how to burn MP3 CD by VC
please give me some suggestion
|
|
|
|
|
|
Dominik Reichl wrote:
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
Well.. I was wondering what that means.... if you could explain please... I have curiosity...;P
Written by: Rafael Fernández López.
void life ( bool me, bool her )
{
while ( her )
{
me = true ;
}
else
{
me = false ;
} }
|
|
|
|
|
I thought previously that
source safe 6.1 version
was current "update" system.
But now which is current for latest versions of Visual studio?
what is that :
http://msdn.microsoft.com/vstudio/default.aspx?pull=/library/en-us/dv_vstechart/html/vsconSlnRootinVSS.asp
??
thanks you
|
|
|
|
|
turn off /GZ option from the project settings, C/C++ tab
A better way is to correctly declare your function with its calling convention.
You have to chose between
__cdecl, __stdcall, __fastcall, or __thiscall calling conventions.
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
no i tried it it is still the same...
Regards
Tarun
Blue Pill or Red Pill........??
|
|
|
|
|
You need to know the exact definition of the function you are trying to call.
Then, when you use GetProcAddress, you should cast to result accordingly, and have a suitable function pointer to put the return value into.
WINAPI == PASCAL == __stdcall
If there's no calling convention used, it will be whatever was the default when the lib was built. In vc6, this will be __cdecl.
The symptom you describe means either your calling conventions are wrong, or there is a possibility that the called function (in the DLL) is trashing the stack in a specific way.
Steve S
|
|
|
|
|
hi all,
i am trying to LoadLibrary and then getting the ProcAddress and trying to call that function in DLL.
I am getting the following error.
The value of ESP was not properly saved across fucntion call.This is usually the result of the calling the fucntion declared with one calling function with a function pointer declared with a different calling convention.
Any ideas .
TIA
Regards
Tarun
Blue Pill or Red Pill........??
|
|
|
|
|
Hi,
I have a simple problem here which i hope to ask :
1. how do I code in c to make my program open a specific file using the default appplication.
2. how do i code in c to make my program open another application.
my program needs to satisfy 2 thing. one is to open a .ra file automatically using the real audio application. two is to open the real audio application only. btw i am using VC6.
Please advise.
Thank you !!
with regards
bk
|
|
|
|
|
ShellExecuteEx() and CreateProcess() might help for 1 and 2 resp.
cheers
|
|
|
|
|
Hi!!!
I am trying to check Internet connection on a system with the InetIsOffline().
But getting errors like
D:\Program Files\Microsoft SDK\include\IntShCut.h(220) : error C2065: 'IUnknown' : undeclared identifier
I have included intshcut.h and linked statically "url.lib". I am using VC 6.0 on Windows 2000 SP4 and IE6. Here is the code snippet
#include "stdafx.h"
#include "Wininet.h"
#include "stdio.h"
#include "stdlib.h"
#include "IntShCut.h"
nt APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
BOOL bConnected;
bConnected = InetIsOffline(0);
/*
Other code
*/
}
I am sniffing a linking problem but have no clue. I have put url.lib in Project /Settings/ Link / library modules.
Thanx in advance.
|
|
|
|
|
You should probably be including unknwn.h .
Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?
|
|
|
|