Click here to Skip to main content
15,891,733 members
Home / Discussions / Windows Forms
   

Windows Forms

 
GeneralRe: Datagrid Pin
DotNetXenon9-Jan-08 10:50
DotNetXenon9-Jan-08 10:50 
QuestionMDI app with Database access Pin
Gymnast7-Jan-08 8:26
Gymnast7-Jan-08 8:26 
GeneralRe: MDI app with Database access Pin
Kschuler10-Jan-08 10:05
Kschuler10-Jan-08 10:05 
QuestionHow maintain advertisement on kiosk machine [modified] Pin
Prashant kr Yadav (MEC)7-Jan-08 3:36
Prashant kr Yadav (MEC)7-Jan-08 3:36 
AnswerRe: How maintain advertisement on kiosk machine Pin
Christian Graus8-Jan-08 9:18
protectorChristian Graus8-Jan-08 9:18 
GeneralRe: How maintain advertisement on kiosk machine Pin
Prashant kr Yadav (MEC)9-Jan-08 3:13
Prashant kr Yadav (MEC)9-Jan-08 3:13 
GeneralRe: How maintain advertisement on kiosk machine Pin
Pete O'Hanlon10-Jan-08 10:02
mvePete O'Hanlon10-Jan-08 10:02 
Generalusing shellexecuteex to register a dll Pin
iancarter7-Jan-08 0:26
iancarter7-Jan-08 0:26 
With the introduction of Vista, my previous VB script code that registers a dll using regsvr32 now fails.
So I've scanned the blogs on the subject and found that calling shellexecuteex will get round the access (elevation) issue.

I found the following code and modified it to call regsvr32

#include <windows.h>
#include <shellapi.h>

int __cdecl main(int argc, char **argv)
{
if (argc == 3) {
SHELLEXECUTEINFO sei = { sizeof(sei) };
sei.fMask = SEE_MASK_FLAG_DDEWAIT;
sei.nShow = SW_SHOWNORMAL; // added 27 Nov
sei.lpVerb = argv[1];
sei.lpFile = argv[2];
ShellExecuteEx(&sei);
}
return 0;
}

so at the Command prompt I type
'executable name' regsvr32 ddlname

and get the following error message (well words to that effect)

"unknown file type. File needs to be associated via Control panel".

If I typed
'executeable name' open filename it works fine and opens the <filename>.

How / what is missing when I run regsvr32 using shellexecuteex?

many thanks,
ian</filename>
QuestionFinding the menu item the mouse is over for help request Pin
earlgraham4-Jan-08 13:03
earlgraham4-Jan-08 13:03 
GeneralRe: Finding the menu item the mouse is over for help request Pin
Kschuler10-Jan-08 9:59
Kschuler10-Jan-08 9:59 
GeneralRe: Finding the menu item the mouse is over for help request Pin
earlgraham10-Jan-08 10:05
earlgraham10-Jan-08 10:05 
General.net remoting Pin
divyesh14323-Jan-08 23:05
divyesh14323-Jan-08 23:05 
GeneralRe: .net remoting Pin
Dave Kreskowiak4-Jan-08 8:38
mveDave Kreskowiak4-Jan-08 8:38 
General2 control units(image buttons) in one datagrid Column Pin
jekak3-Jan-08 5:32
jekak3-Jan-08 5:32 
GeneralRe: 2 control units(image buttons) in one datagrid Column Pin
led mike3-Jan-08 5:54
led mike3-Jan-08 5:54 
GeneralRe: 2 control units(image buttons) in one datagrid Column Pin
jekak3-Jan-08 6:11
jekak3-Jan-08 6:11 
GeneralRe: 2 control units(image buttons) in one datagrid Column Pin
Pete O'Hanlon10-Jan-08 10:05
mvePete O'Hanlon10-Jan-08 10:05 
QuestionCustom Datagridview cell Pin
mp9920053-Jan-08 0:43
mp9920053-Jan-08 0:43 
GeneralRe: Custom Datagridview cell Pin
LongRange.Shooter1-Feb-08 9:57
LongRange.Shooter1-Feb-08 9:57 
QuestionAny way to get all TreeNodes in a TreeView have the '+' symbol? Pin
jeffb422-Jan-08 10:20
jeffb422-Jan-08 10:20 
AnswerRe: Any way to get all TreeNodes in a TreeView have the '+' symbol? Pin
led mike2-Jan-08 10:43
led mike2-Jan-08 10:43 
AnswerRe: Any way to get all TreeNodes in a TreeView have the '+' symbol? Pin
Dave Kreskowiak2-Jan-08 12:25
mveDave Kreskowiak2-Jan-08 12:25 
GeneralRe: Any way to get all TreeNodes in a TreeView have the '+' symbol? Pin
jeffb422-Jan-08 12:57
jeffb422-Jan-08 12:57 
GeneralRe: Any way to get all TreeNodes in a TreeView have the '+' symbol? Pin
Dave Kreskowiak3-Jan-08 5:41
mveDave Kreskowiak3-Jan-08 5:41 
Generalwindows service :) [modified] Pin
accessred2-Jan-08 5:11
accessred2-Jan-08 5:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.