|
ns wrote:
pRecordset->UpdateBatch (adAffectAll);
?
Have you tried pRecordset->UpdateBatch (adAffectCurrent);
And which record are you at ?
Regardz
Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining.
Said by Roger Wright about me.
|
|
|
|
|
The literature I read said it appends at the end of the rs so you dont have to PutAbsolutePosition(index) to place it at the end. I tried putting it at adEOF but still no results.
Thanks and I will try your suggestion,
ns
|
|
|
|
|
Hey Guys
How do i get global variables available in all files of project. For instance i declare a global variable in a header and then include that header in everything that i want to acces the global variable but that doesn't work so how exactly do i go about doing it so i can have a program wide global accesable from any cpp file.
Peter
|
|
|
|
|
Define the variables above the main () in your main.cpp source. Declare the variables as "extern" in your other header files. Done.
|
|
|
|
|
Cheers Works buetifully
Peter
|
|
|
|
|
I get the error - current recordset dose not support updating. Ths may be due to the lockType. I have a recordset object (from a CP class) and its constructed as
CADORecordset::CADORecordset(CADODatabase* pAdoDatabase)
{
m_pRecordset = NULL;
m_pCmd = NULL;
m_strQuery = _T("");
m_pRecordset.CreateInstance(__uuidof(Recordset));
m_pCmd.CreateInstance(__uuidof(Command));
m_nEditStatus = CADORecordset::dbEditNone;
m_nSearchDirection = CADORecordset::searchForward;
m_pConnection = pAdoDatabase->GetActiveConnection();
}
with
_RecordsetPtr m_pRecordset;
How can I set the lockType and to what should I set it?
Thanks ,
ns
ANother question:
You can see that the search direction above is forward, and each time I search I want to strat from the beginning. How would I accomplish that?
|
|
|
|
|
|
You get it from command line using
nbtstat -A "IP_address"
Thanks,
Satish
|
|
|
|
|
What name do you want?
The "internal" netbios name, like "server", or the dns-name, like "codeproject.com"
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
see documentation for gethostbyaddr() in MSDN. Maybe that'll help.
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
I tried many source corders, did not find a worked sample for gethostbyaddr().
|
|
|
|
|
what is the fastest way to draw single-color rectangles of equal size (100's of thousands of them maybe!) to the screen... the only thing that changes between them is the color
i thought of these choices:
1) deleting and creating a new brush for every single different color, selecting and unselecting it to the DC, and Rectangle()
2) creating a DIB with one palette entry, then just changing that palette entry for every single color
3) anything else you guys can come up with
thanks,
- Roman -
|
|
|
|
|
FillSolidRect()
CPUA 0x5041
Sonork 100.11743 Chicken Little
"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies
Within you lies the power for good - Use it!
|
|
|
|
|
Depends, do you want the screen to be updated constantly as they are drawn? Then #1 is probably the way to go, as it has a decent chance of being accelerated. If you just want them all drawn and then shown at once, using a memory bitmap and an optimized fill routine *might* be faster. But, you'd probably still want to test it.
---
Shog9
If I could sleep forever, I could forget about everything...
|
|
|
|
|
RECT rc;
rc .top = 12;
SetBkColor (hDC, clr);
ExtTextOut (hDC, rc .left, rc .top, ETO_OPAQUE, &rc, _T (""), 0, NULL);
Overall, that is the fastest way to clear a rectangle in GDI (OpenGL, DirectX are different).
Tim Smith
"Programmers are always surrounded by complexity; we can not avoid it... If our basic tool, the language in which we design and code our programs, is also complicated, the language itself becomes part of the problem rather that part of the solution."
Hoare - 1980 ACM Turing Award Lecture
|
|
|
|
|
|
Is it possible to send text to the clipboard without using the context menu/Keyboard shortcut(usually/allways/only the edit ctrls) for 'Copy ' command?
--BlackSmith--
"With the help of all mighty", 2001, Me.
|
|
|
|
|
Are you talking about by just using any program, or programatically inside of your program?
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
I want it programatically inside of my program.
--BlackSmith--
"With the help of all mighty", 2001, Me.
|
|
|
|
|
|
this is code of gotoxy, i have made in c++ using assembly, but it is not working and giving an error of "invalid operand".
plz help!!!!
void _gotoxy(int row,int cols)
{ asm MOV AH,0x2
asm MOV DH,row// problem is here,if we use
asm MOV DL,cols//constant here, it works
asm MOV BH,0x0
asm INT 0x10
}
void main()
{ clrscr();
_gotoxy(15,15);
printf("x");
getch();
}
|
|
|
|
|
see below
CPUA 0x5041
Sonork 100.11743 Chicken Little
"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies
Within you lies the power for good - Use it!
|
|
|
|
|
"when performing a disk format under program code one should write a certain pattern to the sector then read it back and verify what you read is correct before proceeding. if this isnt done bad things may happen"
"when posting to the forums one should write a question and read back what is written (by others) before proceeding. if this isnt done bad things may happen"
do i make a point?
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
this is code of gotoxy, i have made in c++ using assembly, but it is not working and giving an error of "invalid operand".
plz help!!!!
void _gotoxy(int row,int cols)
{ asm MOV AH,0x2
asm MOV DH,row// problem is here,if we use
asm MOV DL,cols//constant here, it works
asm MOV BH,0x0
asm INT 0x10
}
void main()
{ clrscr();
_gotoxy(15,15);
printf("x");
getch();
}
|
|
|
|
|
ummmmmm dh is a 8 bit register so is dl and ints are 16 or 32 bits ... could it be that u are loading the wrong bit of the int value into the register and doing something really squiffy later?
also can u access the params by name? i always used to use the stackframe offset
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|