Click here to Skip to main content
15,903,201 members
Home / Discussions / C#
   

C#

 
GeneralRe: Upon Quitting Executing a Server Side Function Pin
mzakharia28-Oct-05 3:17
mzakharia28-Oct-05 3:17 
QuestionHorizontal data in Datagrid Pin
geek-age27-Oct-05 22:10
geek-age27-Oct-05 22:10 
AnswerRe: Horizontal data in Datagrid Pin
WillemM28-Oct-05 1:33
WillemM28-Oct-05 1:33 
GeneralRe: Horizontal data in Datagrid Pin
geek-age29-Oct-05 2:04
geek-age29-Oct-05 2:04 
QuestionHow to get the path of the file that is present with in the project folder. Pin
sukanyavarma27-Oct-05 18:23
sukanyavarma27-Oct-05 18:23 
AnswerRe: How to get the path of the file that is present with in the project folder. Pin
Christian Graus27-Oct-05 18:39
protectorChristian Graus27-Oct-05 18:39 
GeneralRe: How to get the path of the file that is present with in the project folder. Pin
sukanyavarma27-Oct-05 19:29
sukanyavarma27-Oct-05 19:29 
QuestionIE MIME type application association Pin
timothymfox27-Oct-05 18:07
timothymfox27-Oct-05 18:07 
I have an C# Winforms application that takes data in a small input file which happens to be in XML format. Prior to this, I gave the file a custom extension (let's call it .mya for example) and associated that extension with my APP, so when someone clicked on the extension, it looked for an app already running, and if it found it, it sent that as an argument, otherwise it loaded the file itself. The app then took the data out of the custom XML file (.mya) and, among other things, sticks the data on a column in a datagrid.

Now, I'd like to set things up so when someone goes to a file like this as an URL in IE or Firefox, it will recognize the extension and call up my app. To do this, I created my own MIME type "application/myapp", had the Apache web server on the other end send the file type as that content type in its HTTP header, and then wrote to the registry under MIME/Database/Content Type my new data. I added the extension string there as .mya I then tried it out with Firefox, and it worked just fine.

It did not work at all with IE. IE sniffs the file and says, "This is actually an XML file" despite the extension and renders it as such in the browser. If I encrypt or encode the file as binary, this may force IE but I'd prefer not to do that if I don't have to.

One possibility is to get this to work with IE, I have to generate a GUID for my app and and add it under my MIME registry key as the CLSID. Then, somehow I go to my app and register this as a COM object, and support the object passing.

All this seems quite complicated for something seemingly so simple. Anyone able to help me out -- perhaps there's a better way to do it. Or, perhaps generating the CLSID in the registry and then supporting that in my code is easier than I'm thinking.

Thanks a lot for everyone's help!
QuestionHelp In Graphics Program Pin
GegoTheWizard27-Oct-05 16:23
GegoTheWizard27-Oct-05 16:23 
AnswerRe: Help In Graphics Program Pin
Christian Graus27-Oct-05 16:29
protectorChristian Graus27-Oct-05 16:29 
GeneralRe: Help In Graphics Program Pin
WillemM28-Oct-05 1:38
WillemM28-Oct-05 1:38 
QuestionUsing C# to access a BDE DBase file Pin
KBTibbs27-Oct-05 12:13
KBTibbs27-Oct-05 12:13 
AnswerRe: Using C# to access a BDE DBase file Pin
WillemM28-Oct-05 1:40
WillemM28-Oct-05 1:40 
QuestionHow to debug a pinvoked api call that generates an unknown error Pin
Dan Neely27-Oct-05 11:02
Dan Neely27-Oct-05 11:02 
QuestionMenu for a form when IsMdiContainer is true Pin
naglbitur27-Oct-05 10:06
naglbitur27-Oct-05 10:06 
AnswerRe: Menu for a form when IsMdiContainer is true Pin
enjoycrack27-Oct-05 10:15
enjoycrack27-Oct-05 10:15 
AnswerRe: Menu for a form when IsMdiContainer is true Pin
Nick Parker27-Oct-05 10:18
protectorNick Parker27-Oct-05 10:18 
GeneralRe: Menu for a form when IsMdiContainer is true Pin
naglbitur27-Oct-05 11:27
naglbitur27-Oct-05 11:27 
QuestionFolder access Pin
.NetRocker27-Oct-05 8:29
.NetRocker27-Oct-05 8:29 
AnswerRe: Folder access Pin
Michael Hendrickx28-Oct-05 0:14
Michael Hendrickx28-Oct-05 0:14 
GeneralRe: Folder access Pin
.NetRocker28-Oct-05 4:59
.NetRocker28-Oct-05 4:59 
GeneralRe: Folder access Pin
Dave Kreskowiak28-Oct-05 5:03
mveDave Kreskowiak28-Oct-05 5:03 
GeneralRe: Folder access Pin
.NetRocker28-Oct-05 5:40
.NetRocker28-Oct-05 5:40 
GeneralRe: Folder access Pin
Dave Kreskowiak28-Oct-05 12:19
mveDave Kreskowiak28-Oct-05 12:19 
GeneralRe: Folder access Pin
.NetRocker31-Oct-05 4:01
.NetRocker31-Oct-05 4:01 

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.