|
Hey guys
I have written a dll which is a shell extension so when you right click on my file type it brings up a menu. What i was wonering is if anyone knew how to get the double click of the file to launch one of the right click menu options on the file.
At the moment i found the registry entrys to get it to load a dll on double click or open but i was wondering what the registry passes in to the dll and what function i need to add to the dll to get it to react to the open command.
Cheers for the help
Peter
|
|
|
|
|
Hi all there,
I have to implement registered file opening by double clicking on it in windows explorer.Please guide me to do so.
Regards
Abid
|
|
|
|
|
Hi, you can do that with ShellExecute()
|
|
|
|
|
How can I design a component that import/export image (bmp or gif) to and from the database.
|
|
|
|
|
Hi!
My program send an email via MAPI. i use the following code :
// Build the message
MapiMessage Msg;
MapiRecipDesc Dest;
MapiFileDesc ReportFile;
memset(&Msg, 0, sizeof(Msg));
memset(&Dest, 0, sizeof(Dest));
memset(&ReportFile, 0, sizeof(ReportFile));
ReportFile.nPosition = (ULONG)-1L;
ReportFile.lpszPathName = szFileName;
Dest.ulRecipClass = MAPI_TO;
Dest.lpszName = "Philippe Mignard";
CString szEmail;
szEmail.LoadString(IDS_EMAIL_ADDRESS);
Dest.lpszAddress = (LPTSTR)(LPCTSTR)szEmail;
Msg.lpszSubject = "[MSS-EasyScan] Source Info Report";
CString szMailBody;
szMailBody.LoadString(IDS_MAILREPORT_BODY);
Msg.lpszNoteText = (LPTSTR)(LPCTSTR)szMailBody;
Msg.nRecipCount = 1;
Msg.lpRecips = &Dest;
Msg.nFileCount = 1;
Msg.lpFiles = &ReportFile;
// Send message
HINSTANCE hInst=LoadLibrary("MAPI32.DLL");
if(hInst!=NULL)
{
ULONG (PASCAL *lpfnSendMail)(ULONG, ULONG, MapiMessage*, FLAGS, ULONG);
(FARPROC&)lpfnSendMail = GetProcAddress(hInst, "MAPISendMail");
lpfnSendMail(NULL, NULL, &Msg, MAPI_DIALOG, NULL);
FreeLibrary(hInst);
}
// End
In my computer, it work well but when i try it into another computer (winMe based OS), it crash in WAB32.DLL. I don't know why. Somebody can help me ?
Thanks a lot.
PS : I hope u understand my 'frenchy' english
F.JULIEN
|
|
|
|
|
i need a GOOD tutorial on winsock programming without MFC. I can already program winsocks with MFC now i want to do it without it but it seems to be veeeeeeeeeeeery complicated, it would also be great if the tutorial wouldn't just expect u to use MSVC but like..it would work under Borland or the mingw compiler also. Now, i am very dumb so i'll need something that'll show me exactly how to use winsock.h 'n stuff cause otherwise i wont understand. Does anyone know such a tutorial??? I'd be very thankfull if i would ever see one on the net.
Thanks thanks thanks lol;P
Kuniva
Want, take, have.
|
|
|
|
|
|
Thank u, this is exactly what i was looking for
Kuniva
Want, take, have.
(oh btw, best way of learning some language is by looking at examples, start large!) :p
|
|
|
|
|
I created a installer of my program using PC-install.
The fonts displayed in my program are working fine till i installed another application.
The fonts like windings and some of my own created fonts were not displayed at all. and there was grabage displayed instead.
The fonts work fine when used in word or excel
The fonts do have a entry in the registry and are present in the fonts folder.
I am totally confused . can Anyof you help me out
Manish jaggi
|
|
|
|
|
Hi all,
I want to send ALT + SHIFT keys to system at the start of the workstation. For that I've created a little application and tried to use SendInput(), this
seems to work but only for the application. I need it for the whole system !
Can anyone help with this?
|
|
|
|
|
CTreeCtrl node text doesn't support more than 256 char,How can I do???
|
|
|
|
|
At first i want to say that I'm a real beginner. Can you give me some help, please?
I have two ATL ActiveXControls. Now i'm able to fire events from the first control. But i want to use theese events by the other control. I need a simple description, how i can do this.
Thank you very much!!!
Greetings
Ricky
|
|
|
|
|
hello,
i want to build an application which uses more than one type of view. for example: i have a main toolbar which always stays visible and its got like four buttons or so. Now if i press the first button the main view should be a RicheditView, if i press the second one i should have a listbox on the left and a richeditview on the right side of the main view, if i press the third one i want the view to be a Browser. i know how to work with all these things but i just have no idea which is best to use, should i use a dialog with container controls which i hide and show when a button is pressed(but then there's the toolbar problem, i mean, its possible for a toolbar on a dialog but its kinda weird yaknow...), or should i use a SDI and can i change the type of the View thing? or should i use a MDI and make extra classes for the views i want to implement? and if that'd be best then how do i do that? because when u generate a MDI project and u press the New button there isn't any code for that and it just makes a new window of the same Base class everytime...
Thankya
Kuniva
Want, take, have.
|
|
|
|
|
The appwizard generated code for the "New" command handler is in the CWinApp derived application class.
You should derive new CView based classes for you views, and replace this code to handle what you require. Probably by moving it to CMainFrame.
|
|
|
|
|
You could use the Visual Frameworks by Zoran M Todorovic (can be found at CodeGuru, http://www.codeguru.com/advancedui/VisualFx.shtml). Put each of your view options in a view tab in a tabbed view. Just a suggestion.
good luck
Steen.
|
|
|
|
|
Is there a one data type in c++ can hold any type of data(string,integral,float...) like a Variant data type in Visual basic .
I found a VARIANT type but it is must determine the type u would like before use it like this:
VARIANT v;
v.vt = VT_BSTR;
But what if there is a function can accept unexpected data type(For example some times string ,some times integral and so on...)
Can any body help me.
|
|
|
|
|
You were on the right track. VARIANTs are the type to use. In fact, they're the type that VB's Variants are based on. You can use them as parameters to functions (and you'll find you have to for many COM calls):
void MyFunction(VARIANT avtSomeValue)
{
switch (avtSomeValue.vt)
{
case VT_I4:
...etc
}
There is also a wrapper class called _variant_t which allows you to create MOST VARIANT types (unfortunately not all), and also provides a method called ChangeType which can be used to change the type of the variant. Personally, I find it easier to create the _variant_t objects as I need them:
if (i_want_a_string)
{
_variant_t vvtString("Some String");
MyFunction(vvtString);
}
else if (i_want_an_int)
{
_variant_t vvtInt(123, VT_I4);
MyFunction(vvtInt);
}
else
{
_variant_t vvtFloat(123.456, VT_R8);
MyFunction(vvtFloat);
}
There are also a whole pile of API functions which can help manipulate and convert VARIANTs. Try looking in MSDN for VarI4FromBstr or similarly named functions. There are also comparison functions such as VarCmp.
Hope this helps.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
But you can not use function like this:
int n;
MyFunction(n);
and the call it like that:
char s;
MyFunction(s);
yu will get an error.
|
|
|
|
|
You can use function templates to manipulate different kinds of data in the same function.
|
|
|
|
|
is there a library or function on visual c++ that lets you obtain or record voice samples? if yes, where can we find that? otherwise, is there a way to access the sound card of the PC and program it accordingly?
|
|
|
|
|
|
Hay
reading a lot about shell extentions, i still didn't find a way to extend Explorer by "catching" file selection (LEFT click on a file ) and do something in response to it.
any ideas how to do it?
(ho, and FileManager Extentions are only for Win3.11 ?)
|
|
|
|
|
How can I turn the MFC Doc/View Window into a Dialog style window so only the X is there instead of, Minimize, Maximize, and Close(X)?
|
|
|
|
|
It's amongst the properties in the dialog editor.
Christian
Secrets of a happy marriage #27:
Never go to bed if you are mad at each other. It's more fun to stay up and fight.
|
|
|
|
|
Override CWnd::PreCreateWindow() thus:
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
cs.style &= ~(WS_MAXIMIZEBOX | WS_MINIMIZEBOX);
return CFrameWnd::PreCreateWindow(cs);
}
--Mike--
http://home.inreach.com/mdunn/
A recent survey reports that 1/4 of all internet users in England surf for porn.
The other 3/4 just didn't want to admit it.
|
|
|
|