|
You cannot pass pointers from one process to another. Each process has its own address space, so a pointer in process A points to process A's address space. Process B cannot access any data in process A. The simpliest way to resolve this is to write the data to a file that can be read by process B. Another way may be for process A to put the data into the clipboard and process B to extract it. There are other ways but much more complicated and involves advanced COM+ programming.;)
|
|
|
|
|
I have created two exes(MFC).I am posting a pointer to the structure thro' PostThreadMessage
from one exe
(struct message
{
int messageid;
CString messagedescription;
};
the members are initialized
)
The other exe should receive the pointer posted by the thread from other exe & it should display the member values.But, in my case the structure is getting posted successfully !But, I am getting some junk values in the receiving exe.
How can I get the desired values, then ?
Y.Yamini Devi
|
|
|
|
|
I have created two exes(MFC).I am posting a pointer to the structure thro' PostThreadMessage
from one exe
(struct message
{
int messageid;
CString messagedescription;
};
the members are initialized
)
The other exe should receive the pointer posted by the thread from other exe & it should display the member values.But, in my case the structure is getting posted successfully !But, I am getting some junk values in the receiving exe.
How can I get the desired values, then ?
Y.Yamini Devi
|
|
|
|
|
I'm looking for a Blackjack source code for Palm. Any help would be appreciated.
|
|
|
|
|
Hello Everyone,
I have a problem. I have a Web Browser control embedded in a dialog. Now when i drop a file on this control it opens the file. What i want is doing custom handling for this like putting an icon for these files which when double clicked should open the files. Actually i have to make this dialog behave like the "Compose Message" dialog in Outlook.
Does anyone have any suggestions on how this could be done ?
Thanks a lot for any help,
Regards,
Abhi.
|
|
|
|
|
Two things to try. (This is just speculation - I haven't tried it myself.) 1. Register your dialog as a drop target and see if this overrides the WB control's drag and drop handling. 2. If the WB control still responds to drops, call RevokeDragDrop() and pass the HWND of the WB control.
--Mike--
http://home.inreach.com/mdunn/
Time is an illusion; lunchtime doubly so.
|
|
|
|
|
I am an RPG 400 & RPG IV programmer...although I have been out of the field for 2 years....want access to any online code...so I can refresh myself! Finding it difficult to find site with code I can view! Not bothered what the content is....just want to refresh myself...Any CL would also be a bonus
As would Any command creation! Forgotten alot of coding!
Kelly M.
|
|
|
|
|
Hi,
I am trying to put together what needs to be distributed as part of the install software. I am wondering if customers who use our program that accesses MDB files via ADO needs to have MS Access purchased installed on their machine or not? If they do need to have MS Access installed to use our program, then that would severely limit the customers that we could sell the software to since many of them don't have MS Access.
Also, what happens if the user does have MS Access but has a different version from the one that we distribute (e.g. they have MS Access 97 and we distribute a MS Access 2000 MDB). Is the only sol'n to that is to either distribute different versions of MS Access depending on what they have installed, or have ADO recreate the database?
Thanks for any help!
|
|
|
|
|
I am writing a wordprocessor application using CRichEditView as my view, I can do all that
Word Procssor stuffs like "wordpad" application. But I want to implement cool WYSIWYG page effet
like Microsoft Word (or any leading Word Porcessor).This involvs drawing page borders
on the view and somehow move the cursor from one page to next page.....
Someone give me an idea, how to start? or where to for more details etc.....
_dave
|
|
|
|
|
Hi,
I'm currently writing an application: the user creates a (one or more) layout, and he/she can place one or more 'text-objects' on this layout. These text-objects are (at this moment) CRichEditCtrl's. I derived my own class from CRichEditCtrl, in which I do some neat stuff (like transparency etc). So far so good.
A (very) nice feature to have in this application would be the ability to rotate these textobjects. Which means, in fact, I have to rotate the CRichEditCtrl itself, since CRichEditCtrl doesn't work with CFont/HFONT (Otherwise, I probably could do something with escapement). Does anyone knows a way to do this?
There are probably some library's that'll do it for me, but I want to stick with CRichEditCtrl. (Unless you know a _very_ good library that does all other cool stuff like word-wrapping as well).
Thanks for reading, I hope you can help me!
--
Alex Marbus
|
|
|
|
|
Help !!! How correctly realize bufferrd (with memory DC) out for CScrollView ?
My realizations works too slow
Thanks.
---Ranger---
|
|
|
|
|
I'm now writing a program using MFC. I plan to incorporate a file deletion feature into the program. Thank you for your help.
|
|
|
|
|
Use Win32 API function: BOOL DeleteFile(LPCTSTR lpFileName)
|
|
|
|
|
I use this function:
int RecycleBin (LPCSTR File)
{ // sends the specified file to the recycle bin.
// returns zero on success, non-zero otherwise.
char buffer[MAX_PATH];
::ZeroMemory (buffer, MAX_PATH);
strcpy (buffer, File);
SHFILEOPSTRUCT fos;
::ZeroMemory (&fos, sizeof (SHFILEOPSTRUCT));
fos.wFunc = FO_DELETE;
fos.pFrom = buffer;
fos.fFlags = FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_SILENT | FOF_ALLOWUNDO;
return SHFileOperation (&fos);
}
|
|
|
|
|
Pretty cool, I like this function a lot better than ::DeleteFile(..)
I think it sucks if an application I wrote just deletes a (any) file, without leaving the user the ability to un-delete it. Although I'd understand you use DeleteFile if your application only write a temporary file (e.g. a spoolfile or whatever) to the 'Temp'-folder. No need to recycle that one.
--
Alex Marbus
|
|
|
|
|
|
How can i access data in an Excel file using VBScript?
In ASP, I can do it using
set conn = Server.CreateObject("ADODB.Connection")
conn.open "FileDSN=xyz.dsn"
but i am using the VBScript code in an Interworld (Web tool) component which is not recognising the Server object of ASP.
Ananda
|
|
|
|
|
I am very new @ VC++. I am interested in writting my own keypad plugin for winamp. Could someone be kind enough to share some sample codes to give me a head start please...
|
|
|
|
|
Have you downloaded the General Plugin SDK from Winamp? Well, it's not an SDK, just a sample plugin, but that's a good place to start. Winamp's site also has links to discussion boards for developers.
--Mike--
http://home.inreach.com/mdunn/
Time is an illusion; lunchtime doubly so.
|
|
|
|
|
Hi,
I am thinking about a freeware application, that should be able to display and manipulate images. I've looked at the more famous libraries, such as ImageGear. Until I noticed QuickTime was free to use. Does anybody know a link with some sample-code how to use this? Or where I can download the SDK? (Didn't found it @ apple). Thanks!
--
Alex Marbus
|
|
|
|
|
I got lot of trouble using the PDF ActiveX in my application
I'm looking for programmers that have already use this control in a Visual C++ program (like Turbo Browser 2000). The control doesn't refresh itself and I can't find a solution.
Please help me...
Davy
|
|
|
|
|
I have been trying to figure out how to write a Win32 Telnet Client that supports ANSI. The problem I keep running into is hte lack of documentation on ANSI Escape sequences, Windows Socket programming, and related. I desperately wish to know how to make the base code so that I can expand my current designs and incorperate all that I want into it. Thanks!
|
|
|
|
|
Hi,
Did you check out Randy More's "NT Telnet server and client"? on this site?
Also, doing a search at the homepage brings up another project, I believe from the same author.
HTH!
Scott!
|
|
|
|
|
Anybody interested to code a control container (ATL) wih me? Any precise article/code would be good help too.
A
|
|
|
|
|
I've just started writing one - I was going to develop support for hosting ActiveX controls *only* V1 wasn't going to support windowless nor quick activation? why are you developing a control container?
|
|
|
|