Click here to Skip to main content
15,892,480 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: Databindings fail to update db Pin
dragon528-Jan-09 15:07
dragon528-Jan-09 15:07 
GeneralRe: Databindings fail to update db Pin
Wendelius9-Jan-09 0:00
mentorWendelius9-Jan-09 0:00 
QuestionRequirment to create a web site in which user can create his mail account Pin
rahuladya5-Jan-09 20:11
rahuladya5-Jan-09 20:11 
AnswerRe: Requirment to create a web site in which user can create his mail account Pin
Lev Danielyan5-Jan-09 20:40
Lev Danielyan5-Jan-09 20:40 
AnswerRe: Requirment to create a web site in which user can create his mail account Pin
EliottA6-Jan-09 2:06
EliottA6-Jan-09 2:06 
QuestionHow Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Curtis Schlak.5-Jan-09 8:34
Curtis Schlak.5-Jan-09 8:34 
AnswerRe: How Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Pete O'Hanlon5-Jan-09 9:14
mvePete O'Hanlon5-Jan-09 9:14 
GeneralRe: How Can My Code Access "Global" or "Module-Level" Methods from C#? Pin
Curtis Schlak.5-Jan-09 13:55
Curtis Schlak.5-Jan-09 13:55 
Don't worry. I just did some more research and found that cross-assembly global references are not supported. I did this through writing MSIL code to consume the global function in another assembly and received a compile error informing me of this issue.

For anyone interested, here's the code and command lines:
/* File: helloworld.il */

.assembly extern mscorlib {}

.assembly helloworld
{
	.ver 1: 0: 0: 0 /* Remove spaces for compilation. They make smilies on CP. */
}

.method public static void HelloWorld()
{
	ldstr "Hello World!"
	call void [mscorlib]System.Console::WriteLine(class System.String)
	ret
}
Compile with ilasm /DLL helloworld.il
/* File: printer.il */

.assembly extern mscorlib {}

.assembly extern helloworld
{
	.ver 1: 0: 0: 0 /* Remove spaces for compilation. They make smilies on CP. */
}

.assembly Moo
{
	.ver 1: 0: 0: 0 /* Remove spaces for compilation. They make smilies on CP. */
}

.class public auto ansi Program extends [mscorlib]System.Object
{
	.method public hidebysig static void Main() cil managed
	{
		.entrypoint
		call void [helloworld]::HelloWorld()
		ret
	}
}
Compile with ilasm printer.il
You will receive something similar to the following error:
Microsoft (R) .NET Framework IL Assembler.  Version 2.0.50727.3053
Copyright (c) Microsoft Corporation.  All rights reserved.
Assembling 'printer.il'  to EXE --> 'printer.exe'
Source file is ANSI

printer.il(17) : error -- Cross-assembly global references are not supported ('HelloWorld')
Assembled method Program::Main

***** FAILURE *****


"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty

QuestionRun .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed.new Pin
Dattatraya K5-Jan-09 2:52
Dattatraya K5-Jan-09 2:52 
AnswerRe: Run .NET ActiveX control on IE 7.0 machine that doesnt have .NET installed.new Pin
Dave Kreskowiak5-Jan-09 3:46
mveDave Kreskowiak5-Jan-09 3:46 
Question[Message Deleted] Pin
hemakrishnan4-Jan-09 23:08
hemakrishnan4-Jan-09 23:08 
AnswerRe: Integrating HtmlHelp (.chm) file with wpf xbap application Pin
Dave Kreskowiak5-Jan-09 5:33
mveDave Kreskowiak5-Jan-09 5:33 
QuestionClick once updation issue.... Pin
nileshbahirshet4-Jan-09 3:38
nileshbahirshet4-Jan-09 3:38 
AnswerRe: Click once updation issue.... Pin
Not Active4-Jan-09 10:51
mentorNot Active4-Jan-09 10:51 
GeneralRe: Click once updation issue.... Pin
nileshbahirshet5-Jan-09 17:27
nileshbahirshet5-Jan-09 17:27 
GeneralRe: Click once updation issue.... Pin
Not Active6-Jan-09 0:39
mentorNot Active6-Jan-09 0:39 
QuestionDetermining the Datatype from the typed text in text box Pin
Vipul Mehta3-Jan-09 1:29
Vipul Mehta3-Jan-09 1:29 
GeneralRe: Determining the Datatype from the typed text in text box Pin
Luc Pattyn3-Jan-09 1:58
sitebuilderLuc Pattyn3-Jan-09 1:58 
GeneralRe: Determining the Datatype from the typed text in text box Pin
ShilpaGinodiya3-Jan-09 20:48
ShilpaGinodiya3-Jan-09 20:48 
GeneralRe: Determining the Datatype from the typed text in text box Pin
Luc Pattyn4-Jan-09 0:42
sitebuilderLuc Pattyn4-Jan-09 0:42 
GeneralRe: Determining the Datatype from the typed text in text box Pin
Vipul Mehta4-Jan-09 23:20
Vipul Mehta4-Jan-09 23:20 
AnswerRe: Determining the Datatype from the typed text in text box Pin
Roger Wright4-Jan-09 3:22
professionalRoger Wright4-Jan-09 3:22 
QuestionClient-Server Using TCP/IP and VB.net Pin
VikashGohil2-Jan-09 20:16
VikashGohil2-Jan-09 20:16 
AnswerRe: Client-Server Using TCP/IP and VB.net Pin
Dave Kreskowiak3-Jan-09 4:41
mveDave Kreskowiak3-Jan-09 4:41 
GeneralRe: Client-Server Using TCP/IP and VB.net Pin
VikashGohil3-Jan-09 18:36
VikashGohil3-Jan-09 18:36 

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.