|
How to connect to the Oracle 8i database using only C (normal) without the external options
Karajagi Prashant R.
|
|
|
|
|
These are the steps breifly
u can try out this and let me know
i)Include “sql.h”
ii)SQLAllocHandle()
iii)SQLSetAttrib
iv)SQLConnect
v)SQLDisconnect
vi)SQLFreeHandle
chandu
|
|
|
|
|
Is there any way besides using a right-reading locale to make windows with scrollbars on the left and top instead of on the right and bottom?
Michael S. Scherotter
Lead Software Architect
Tartus Development, Inc.
|
|
|
|
|
I have developed an ActiveX Control using ATL, Now, I want to add drag & drop functionality in this control to drag text values. I have tried MSDN DnDZoom example but couldn't make much progress. I want someone to help me in implementing this functionality or pointing me to right direction with code example. I am uregently in need of this.
Tushar Bhatt
|
|
|
|
|
I have been meaning to get this stuff into an article, I just don't have the time to do everything I need to. Anyways. Here's the code that I have been using in my ATL Projects and that Michael Dunn is using in the CodeProject Search Toolbar.
linkdrop.h
linkdrop.cpp
Hope it helps.
BTW, I should mention that I pulled this out of a MSDN sample a while back. And I have not removed the "GOTO" statements that were part of the MSDN Sample. So that you know where to put the blame.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Thank you very much for your help. I am studying the code. Thank you very much again.
Tushar Bhatt
|
|
|
|
|
Dear Erik,
The files are no more available. Could you please share them again?
|
|
|
|
|
Can someone please tell me a tried and true method for listing (from a client app, not a server) to a socket without hanging the entire program. I'm trying to detect when data arrives without having to continually probe the socket and without locking up the main app by blocking.
There's CAsyncSocket & CSocket (MFC) that uses messaging, there's raw sockets, I guess I could create a new thread that performs a while loop and blocks on the call to recv(...) - should I use non-blocking I/O schemes - should I use winsock or winsock2, ... I'm a little overwhelmed and maybe I've made it harder than it should be. Any clarification is much appreciated.
|
|
|
|
|
I use this way: I usually use the data I expect to come. When the error occurs - there are no new data. When not - that is OK. This works!
|
|
|
|
|
If your starting out, I'd just use the MFC CSocket class. Get a simple client and server working with CSocket and then get complicated (i.e. asychronous) later.
Override the OnReceive(...) message. When data shows up, OnReceive will get called, so then you call Receive(...) to receive the data. If there is more data in the buffer, OnReceive will get called again for you.
I don't know if the socket calls are blocking or not, but CSocket works synchronously rather than asynchronously, which will save you a lot of headaches.
In my experience, the CSocket Connect() call is annoying when it blocks, but the Receive() and Send() calls are barely noticable when you call them. Remember that we're going at network speed, dude, and we know that the data has already arrived via TCP/IP. All you have to do is read it out of memory.
"Harland Pepper, would you stop naming nuts" - Harland Pepper
|
|
|
|
|
im looking for a VB/C++ code that has GUI for "NET SEND" command for win NT.
there is a command "net" in windows nt and win2k. you can use it to send a message to another pc inside the local area network. im looking for a program that has a GUI for (the one that does not require you to go to the shell and type it manually to invoke and send the command. i want a yahoo mesenger type. i think this is a very simple program that uses the "net" command itself. although it has to listen for incming message to. if it still doesnt exist on codeproject, can u guys help me do it? clues on going about it. thx!
note: im an intermediate level in VB prog.
i dont know visual c++. although i know c and c++.
thx guys!
|
|
|
|
|
you can use API named NetMessageBufferSend(...)
see detail form MSDN.
|
|
|
|
|
In my message map...
BEGIN_MESSAGE_MAP()
...
ON_WM_????
END_MESSAGE_MAP
what is the message used to tell a window to assert the OnRecieve method of a CAsyncSocket object.
|
|
|
|
|
CAsyncSocket::OnReceive() is an overridable rather than a message handler. To invoke it you could technically send WM_SOCKET_NOTIFY with the appropriate arguments. For details on how it gets called see the MFC source code for CSocket::ProcessAuxQueue() and CAsyncSocket::DoCallBack() in file SOCKCORE.CPP.
Anatoly Ivasyuk
DTLink Software http://www.dtlink.com
|
|
|
|
|
hi!
I've got a problem: I need to write a cache driver to cache some
explicitly selected files with HUGE caches. The real situation is,
that I should cache 3-4 files (each can have more GB in size, and
can be placed on local workstation, local network or internet) with
1-30 MB caches (in memory!) per file.
I tried to find some infos in the WinNT 4.0 DDK about the cache
manager, but I didn't find any (now I'm searching some MSDN CDs)
One basic idea of mine is, that actually I should intercept any
file reads (and writes) like anti virus resident guards (shields)
do, but this is only the idea... no code, no docs, so can anybody
help me?
The cache sould be completly transparent to other programs, but
there are some limitations: 1) for the beginning it's sufficient to
cache file reads, and 2) the file reads are generally sequencial
(means that is enough to have the cacheing efficient for sequiencial
file reads from the start to the end)
alex
ps. tips, websites, docs, etc. would also good, sample code would
be the best;
|
|
|
|
|
Since we're talking NT here, there isn't a reasonably priced solution I'm aware of.
I'd start by having a look at the www.ntfsd.org and www.osr.com, especially the formers mailing list archives.
The next solution I can come to think of is the file system filter driver DDK (IIRC it's "only" $5000 without any support, but that might have been the full FSDK) from Microsoft.
You'd probably have intercept those CreateFile calls and set the "don't cache" flag and then do the caching yourself for those handles.
But I'm a little at loss here what you really want to do. You mention you want to cache files even over "internet". Are you using SMB over TCP over the 'net? Tunneling? This is about the only way I can see how CreateFile would accept this kind of file access (since you mention "cache file reads" it seems to be a HANDLE from CreateFile used).
Could you please elaborate? Caching 30MB for a multi-GB file isn't that useful upon first glance.
Btw, 30MB cache isn't really huge. Using W2k WS (oh, sorry, "Pro") my system often have five times that size for cached (local) files.
|
|
|
|
|
1. actually it would be sufficient for now to handle local files and those one
local network;
2. once again: the files would be readed sequentially, so I think that a 30MB
cache per file is quite enough; on exceptions (random reads) doesn't maters the
caching performance
3. if you have some time, PLEASE send me an example of how could I do a file
caching for an intercepted handle; (this example would be really valuable, as
I have no deep knowledge about NT api / Visual C++; I'm actually a Delphi /
Database / Assembly programmer; ... and I'm only 19 years old )
4. where can I find some links to that Microsoft "file system filter driver DDK"?
thanks,
Sandor
|
|
|
|
|
Im looking for a method to jump into the print process, because I need to manipulate some printer data. The proble is, that I have to do this for EVERY APPLICATION that wants to print to a specific printer. I thought about using a hook, but I can´t find a hint about which message the StartDoc() function sends.
Any ideas ? Thanks, Markus
|
|
|
|
|
does anyone know how to set max/min size of an mdi child view?
i have a mdi application, and i want my my views to have a specific width and height...any idea?
thanks
F.Dost
|
|
|
|
|
Check the docs for WM_GETMINMAXINFO message:
"The WM_GETMINMAXINFO message is sent to a window when the size or position of the window is about to change. An application can use this message to override the window's default maximized size and position, or its default minimum or maximum tracking size."
Tomasz Sowinski
http://www.shooltz.com.pl
|
|
|
|
|
I Need a Class To Show JPG On a Dialog
Should It Be Done With CPaintDC ???
I Also Need To Show JPG Files
As Well As Resources Attached To My Project...
Help U Very Much... :
Best Regards - Yovav Gad
EMail: Yovav@SuperMain.com
Web-Site: www.SuperMain.com
|
|
|
|
|
How to add new columns to an existing excel file with DAO, ODBC or SQL?
|
|
|
|
|
I have a requirement to detect when an application is launched and to determine if the application was launched by an existing application.
For example, when you create a new mail message in Outlook, Outlook actually launches a new application to allow you to edit & send the message. I can detect that a new application has been launched but there doesn't appear to be any way of determing that the application was launched by Outlook.
Any suggestions?
|
|
|
|
|
Only undocumented solutions. MS don't provide us with documented solutions to this kind of "advanced" programming.
My "best guess" is that you'd have to hook CreateProcess. Check out e.g. winternals for possible solutions (you won't like the effort needed).
|
|
|
|
|
How do I get my application's main window to be on top?
My splash screen pops up on top of any other currently open windows.
BUT, when the appication opens its window, that always end up under all currently open windows.
I used the wizard to create the application. I've looked at SetWindowPos which appears to be
the function I need, but I'm not sure where it should be placed to induce the desired behavior.
Would a simple entry in the .rc file do it??
Can it be done at all??
TIA...
gary hasman
gfhasman@go.com
|
|
|
|