|
Can anyone recommend a good CDatabase/CRecordset clone which doesn't use MFC?
Alternatively, can you recommend a different technology (ADO or something) which is independant of MFC?
Cheers
James Spibey
I love the word naked, it's brilliant isn't it, 'naked'. When I was a kid I used to write the word naked on a bit of paper hundreds of times and rub my face in it - Jeff, Coupling, BBC2
|
|
|
|
|
James Spibey wrote:
Can anyone recommend a good CDatabase/CRecordset clone which doesn't use MFC?
You can using COM. There are some articles in CP.
http://www.codeproject.com/database/#COM
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
James Spibey wrote:
Alternatively, can you recommend a different technology (ADO or something) which is independant of MFC?
SQLite at http://www.hwaci.com/sw/sqlite/
Joel Lucsy (jjlucsy@ameritech.net)
|
|
|
|
|
Libodbc++ is good, but it's not a clone of CDatabase/CRecordset. It's based on the JDBC API instead.
|
|
|
|
|
I used CSizingTabCtrlBar and created it in my CMainFrame ,but a problem followed sequently.My listviewfunctions will not work except it was called inside my listview class.For example,when i call InsertItem(...)inside my listview ,it is normal.but if i use GetActiveView()->m_pListCtrl->InsertItem(...),it doesn't work.
if i don't created this control ,then everything was ok!a strange problem ,who can help me?
i am coming quietly just as i am leaving quietly.
|
|
|
|
|
How can I get current system cpu load? Is there some
function or?
|
|
|
|
|
Kristian33 wrote:
How can I get current system cpu load?
When you say "load", do you mean a value like the one shown on unix boxes when you type "uptime", or do you just need to know the percentage of CPU (time) being used by the "System Idle Process"?
Peace!
-=- James.
(Try Check Favorites Sometime!)
|
|
|
|
|
I mean by system load like task manager style
in windows 2000/XP.
|
|
|
|
|
What do you need to Know, The speed of CPU or what kind of CPU do you have....
For those questions I have the Answers...
Regards..
Carlos Antollini.
www.wanakostudios.com
Sonork ID 100.10529 cantollini
|
|
|
|
|
pOld=GlobalAllocPtr(GMEM_MOVABLE,bi.biSizeImage)
This method for memory allocation is unknown for me.
Does anyone known the library it's in, header-file to use? Or is this a vc7.0 function? I'm using 6.0
GMEM_MOVABLE is also unknown...
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
Found it myself
GlobalAllocPtr is in windowsx.h.
btw. it's GMEM_MOVEABLE
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
GlobalAlloc and friends are all Windows API functions,. you can use them from any language you want (C/C++/VB/etc)
-c
I don't care, and you can't make me.
|
|
|
|
|
Hi, with GetTopIndex() I get the first visible index of my listbox. Is there a way to get also the current bottom index (or largest visible)?
Hmm... it seems not. I might need a workaround, e.g.:
<br />
int nTop = GetTopIndex();<br />
CRect rect;<br />
GetClientRect(&rect);<br />
int nBottom = nTop + int((rect.bottom / GetItemHeight(0))+GetItemHeight(0)-1);<br />
if(nBottom >= GetCount()) nBottom = GetCount()-1;<br />
Assuming all my items have same height (which is like that).
Thx for help/ideas.
|
|
|
|
|
Apply CListCtrl::GetTopIndex() , CListCtrl::GetCountPerPage() and some math.
|
|
|
|
|
ClistBox not CListCtrl, thx.
|
|
|
|
|
Hey ppl,
Really need help on how to link a java interface with a program written in c++. I would appreciate any help that you ppl can give. I need to know this asap because I need to do this for a project and the project is due on the 11th of May!!
Thanx.
Dj Smoke
|
|
|
|
|
You'll need java JNI for that purpose.
I'll suggest you search for JNI at the java.sun.com website. If you do this for the first time, it will be a real nightmare to have it working , but once you did it, ...
... or you can communicate between the two using a standard tcp/ip connection
[VISUAL STUDIO 6.0] [MFC] [WIN98/2]
Bluute tette!
|
|
|
|
|
When I want my server, a multithreaded TCP server, to send a message from one client (from one thread) to another client(to another thread)... how will I accomplish that!?
The only way out I can find is that I have a vector with about 100 SOCKET varibles.
But then I creating a separated SOCKET struct for each thread but is that good programming!?
Hope you understand me!
I'm doing it in Win32... not MFC
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Hej Rickard!
yes, I'm doing it a similar way. Eighther each client connecting spawns an own thread... or the way I'm doing: using asynchronous I/O where everything is handled in one server thread.
But in any ways each connected client has a own SOCKET on the server.
Greets, Moak
|
|
|
|
|
Moak wrote:
or the way I'm doing: using asynchronous I/O
I don't get it with asynchronous I/O yet...
But, I have figured it out a little now... I will create an thread for each client and have a global vector with about 200 SOCKET varibles (or how many connections I want...)
It's shouldn't be so that much pain... and it shouldn't be so that slow... or...
Thank you soooo much!
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
> and have a global vector with about 200 SOCKET varibles
I'm using a (single) linked list to store all incoming sockets. Since I'm object orientated this list is a member variable.
If it helps: I'm running a regular timer, which takes care that idle sockets or sockets which do not identify protocol within a timeout get kicked. Also I have a maximum value of sockets to allow to be served. Well, maximum socket depends highly on OS, e.g. Win9x can't handle a lot AFAIK (mh not sure how much?). Just some safty settings.
PS: Does someone knows a Unix port of CAsyncSocket?
|
|
|
|
|
Then I have to learn using linked lists!
But if I create dynamic SOCKET varibles??
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Sorry Rickard, didn't get it.
Perhaps you wanna have a look into existing source code (I do that all time to ste... umm learn). Ask Google or join some programmer channels on IRC. Hope it helps.
|
|
|
|
|
I mean:
SOCKET* MySocket = new SOCKET;
but, in an array of many SOCKET varibles!
Moak wrote:
Perhaps you wanna have a look into existing source code (I do that all time to ste... umm learn). Ask Google or join some programmer channels on IRC. Hope it helps.
I'm not using IRC!
And I have tried dig into a IRC server code but it is difficult to understand!
------------------------------------
Rickard Andersson, Suza Computing
ICQ#: 50302279
I'm from the winter country SWEDEN!
------------------------------------
|
|
|
|
|
Which tag do I need to post C++ sourcecode, readable?
|
|
|
|