|
Hi All,
I have a problem with disconnected recordsets.I ahve a component.One if it's function will get all the Records in a Database.I am passing the Recordset pointer from the server to the Client.I am using disconnected recordsets for this.
I can see that at the server side I am getting the Recordset
pointer.But, I could not get this pointer on the client side.
the function has the protoype
STDMETHODIMP GetAllElements([out]IUnknown **ppRecordset);
I could get the Recordset pointer at the server side, but could not pass it to client.I am using Client side cursor(adUseClient) and standard Marshaling.
what could be the problem .
Thanx in advance for the help.
Regards,
yamini
|
|
|
|
|
I want to use dialog-based frame, but I cannot make CToolBar and CStatusBar to be displayed on the dialog form?
Please tell me how to do it.
|
|
|
|
|
Check DLGCBR32 sample. It demonstrates adding a status bar and toolbar to dialog boxes.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
|
STL is not working in my Vc ++ 6.0 ....
Even for microsoft examples this compiler is returning errors ...
Why ?
Does anybody have any idea ?
Is it corrected by patches ?
|
|
|
|
|
Works fine for me. I'm using SGI and Dinkumware in VC++ 6 SP5. Can you post some code?
|
|
|
|
|
Hmmm, if you would only tell *what kind* of errors, then somebody might actually be able to help you...;)
|
|
|
|
|
don't forget the /GX switch
|
|
|
|
|
What stl? Microsoft STL, Hewlett Packard STL,...?
|
|
|
|
|
There are many bugs in the version of STL that Microsoft ships. For instance, if you put more than 32,768 elements in a list and sort the list, some elements will disappear. Dinkumware has published some extensive patches at http://www.dinkumware.com/vc_fixes.html.
Another patch that dinkumware does not include is that if you want to sort a list using your own sort predicate (not just greater<>() ), you need to delete the line
typedef greater<_Ty> _Pr3;
in the header and then change the delcarations of sort() to
template<class _Pr3> void merge(_Myt& _X, _Pr3 _Pr) and
template<class _Pr3> void sort(_Pr3 _Pr)
He was allying himself to science, for what was science but the absence of prejudice backed by the presence of money? --- Henry James, The Golden Bowl
|
|
|
|
|
Hi,
I have a Problem with an ownerdrawn combobox. I want a special sort
order depending on the value in itemdata and the string.
In the CompareItem Method i cant get the string. ItemID2 of the
CompareItemstruct is always -1. ItemID1 is 0 or 1, the Itemdata1 is correct,
not the Itemdata2.
Where is my Problem
Chris
|
|
|
|
|
From MSDN docs on COMPAREITEMSTRUCT:
"itemID2: This member will be –1 if the item has not been inserted or when searching for a potential item in the list box or combo box."
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Yes, I know the docs.
It happens after i called the AddString and SetItemData functions (I hope the function names are correct).
chris
|
|
|
|
|
When you call AddString on owner-draw combobox with CBS_SORT and no CBS_HASSTRINGS, its index must be determined. WM_COMPAREITEM is sent to combobox parent, and MFC forwards it to your CompareItem method. This happens *before* item is actually added to the list, so -1 in itemDataX represents the item being inserted.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
im facing a problem while doing my college project.
i want to bind the fields of a property page to fields of a database, but im unable to do so. i would be pleased if somebody could give me a workaround..
Thanks
Tejas.
Email: tejasbj@yahoo.com
TJ
|
|
|
|
|
Hello guys,
1 - anyone know where can I find **simple** proxy program (I mean a source code) ?(no MFC or class )
do you know where can I found a great site for C/C++ source code (I mean simple source code to learn from it so I dont mean a realy or a big program)
sorry for my poor english and thank You
--------------
http://www.SaudiABM.com
|
|
|
|
|
Hi!
I downloaded Windows Installer because I got sick of InstallShield. Way to complicated. My problem occurs when I create shortcuts to my programs.
I live in Sweden. Some of us use swedish windows, some use english. In windows installer, your starting point for creating shortcuts on the start menu is the start menu. So, if I create shortcuts like Programs\myappgroup\myapp, everything is fine if the user has english OS. If the user has swedish, the folder Programs will pop up above the programs folder( Program in swedish ). The problem also works the reverse way. So, how can I tell Windows Installer to only create subdirectories if the parent directory exists?
|
|
|
|
|
Hi all,
I want to know can i write Date in in to DATE field in Ms-Access database ???
It mean, does Ms-Access have Date and Time field,
if YES, then how can i write my data in database ?
hmmm, it mean I must write my data in String format, like = "02-13-2001" for writing in database ???
or i have any other way ???
And can i query and search on the Date field ? how ?
in last excusme ... because i don't know english.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Access has a Date/Time format format, one of the column types in the table
design view. One sort of quirky thing is Inserting using the date constant.
Access date constants take the form #mm/dd/yy hh:mm:ss PM#
24 hour time also works. You can probably use other formats but these
I've tried.
INSERT INTO [MYTABLE] ([MYDATE]) VALUES (#06/14/2001 2:18:21 PM#);
Hope this helps
--Chrys
|
|
|
|
|
hmmm, ok, you used SQL for writing date in date field
Now, Please write example about writing date in date field by CDaoRecordset object.
Thanks for reply.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I'm starting work on an already-existing project that has an 80-column source file limit. While I don't really care about 80 columns, I'm catching heat from my colleges for not abiding by it. Can I set a vertical line in the IDE like Borland does?
Thanks in advance.
-Jason
|
|
|
|
|
Check out Visual Assist from www.wholetomato.com, it has the option you looking for -- plus lots of other cool things. Aside from that you'll just have to make a mental note to always press return when you reach 80-column width... not exactly dificult, just tedious.
-Ben
"Its funny when you stop doing things not because they’re wrong, but because you might get caught." - Unknown
|
|
|
|
|
Hello.
As I need to rotate a bitmap before displaying it I'm trying to access the actuel pixels of the bitmap, the bitmap is in my resources.
I'm using the following code to load the bitmap and get a pointer to the data:
HGLOBAL gBmp;
HRSRC resBmp;
BITMAPINFO *bmpInf;
char *bmp_ptr;
resBmp = FindResource(ProgID, MAKEINTRESOURCE(IDB_BILD_TREK), RT_BITMAP);
gBmp = LoadResource(ProgID, resBmp);
bmpInf = (BITMAPINFO*)LockResource(gBmp);
bmp_ptr = (char *)(bmpInf + bmpInf->bmiHeader.biSize + bmpInf->bmiHeader.biClrUsed * sizeof(RGBQUAD));
Now the BITMAPINFO is okay, biWidth and biHeight at least specify the correct dimensions.
But with some test code I can see that the drawn image is all wrong:
for (int y=0, x;y
|
|
|
|
|
Hi,
I can't comment on Load/Find/LockResource and bitmaps, but think that you should consider using ::LoadImage with LR_CREATEDIBSECTION flag. This gives you direct access to bitmap bits - you'll be able to rotate quickly.
Search for CDibSection on CodeProject if you want to use ready-made wrapper.
Cheers,
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Does anyone know if Whistler sends a WM_UNICHAR message to
send Unicode characters to an ANSI app.
I've compiled everything with this in, but do not seem to be receiving the message
|
|
|
|