Click here to Skip to main content
15,900,906 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to get ideal time of system.. Pin
vayanan21-Jul-08 17:31
vayanan21-Jul-08 17:31 
QuestionC# macro recorder Pin
nelsonpaixao21-Jul-08 13:46
nelsonpaixao21-Jul-08 13:46 
AnswerRe: C# macro recorder Pin
leppie21-Jul-08 14:39
leppie21-Jul-08 14:39 
AnswerRe: C# macro recorder Pin
leppie21-Jul-08 21:58
leppie21-Jul-08 21:58 
QuestionWhat property controls the "format" of DataTable columns? Pin
JoeRip21-Jul-08 13:22
JoeRip21-Jul-08 13:22 
AnswerRe: What property controls the "format" of DataTable columns? Pin
JoeRip21-Jul-08 13:34
JoeRip21-Jul-08 13:34 
GeneralRe: What property controls the "format" of DataTable columns? Pin
leppie21-Jul-08 14:40
leppie21-Jul-08 14:40 
Questionextern keyword not only with DllImportAttributte Pin
Lutosław21-Jul-08 13:01
Lutosław21-Jul-08 13:01 
Hi!

While browsing the .Net Framework source code I saw many methods marked extern, but without a DllImport attributte. My question is how could I use the extern keyword that way and when is it useful (no documentation on msdn; the only thing I found is this post[^].
For example, in String.cs:
[MethodImplAttribute(MethodImplOptions.InternalCall)] 
private extern String PadHelper(int totalWidth, char paddingChar, bool isRightPadded); 

And in comstring.cpp:
FCIMPL4(Object*, COMString::PadHelper, StringObject* thisRefUNSAFE, 
INT32 totalWidth, CLR_CHAR paddingChar, CLR_BOOL isRightPadded)
{
    CONTRACTL {
        DISABLED(GC_TRIGGERS);
        THROWS;
        MODE_COOPERATIVE;
        SO_TOLERANT;		
    } CONTRACTL_END;

    STRINGREF refRetVal = NULL;
    STRINGREF thisRef = (STRINGREF) thisRefUNSAFE;
    HELPER_METHOD_FRAME_BEGIN_RET_ATTRIB_1(Frame::FRAME_ATTR_RETURNOBJ, thisRef);
    //-[autocvtpro]-------------------------------------------------------

    WCHAR *thisChars, *padChars;
    INT32 thisLength;

    if (thisRef==NULL) {
        COMPlusThrow(kNullReferenceException, L"NullReference_This");
    }
(...)

So: how do I have to setup the compiler to build a program which has some methods marked as "InternalCall", without making a separate unmanaged DLL library.
Another question is why VS won't download the unmanaged parts of a source code and forces as to search for them manually...

Greetings - Gajatko

Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.

AnswerRe: extern keyword not only with DllImportAttributte Pin
leppie21-Jul-08 14:46
leppie21-Jul-08 14:46 
GeneralRe: extern keyword not only with DllImportAttributte Pin
Lutosław21-Jul-08 23:43
Lutosław21-Jul-08 23:43 
QuestionPrinting from a webservide Pin
Dirso21-Jul-08 12:47
Dirso21-Jul-08 12:47 
AnswerRe: Printing from a webservide Pin
leppie21-Jul-08 14:43
leppie21-Jul-08 14:43 
GeneralRe: Printing from a webservide Pin
Dirso21-Jul-08 15:10
Dirso21-Jul-08 15:10 
QuestionWebService uploading/processing/returning the results Pin
Dirso21-Jul-08 12:40
Dirso21-Jul-08 12:40 
QuestionSpeed Search Text File Pin
polishprogrammer21-Jul-08 11:19
polishprogrammer21-Jul-08 11:19 
AnswerRe: Speed Search Text File Pin
CPallini21-Jul-08 11:35
mveCPallini21-Jul-08 11:35 
GeneralRe: Speed Search Text File Pin
polishprogrammer21-Jul-08 11:42
polishprogrammer21-Jul-08 11:42 
GeneralRe: Speed Search Text File Pin
Luc Pattyn21-Jul-08 12:12
sitebuilderLuc Pattyn21-Jul-08 12:12 
GeneralRe: Speed Search Text File Pin
polishprogrammer21-Jul-08 12:28
polishprogrammer21-Jul-08 12:28 
AnswerRe: Speed Search Text File Pin
nelsonpaixao21-Jul-08 12:52
nelsonpaixao21-Jul-08 12:52 
AnswerRe: Speed Search Text File Pin
Alan Balkany22-Jul-08 4:01
Alan Balkany22-Jul-08 4:01 
GeneralRe: Speed Search Text File Pin
polishprogrammer23-Jul-08 8:08
polishprogrammer23-Jul-08 8:08 
Questionreseting forms Pin
shwaguy21-Jul-08 10:36
shwaguy21-Jul-08 10:36 
AnswerRe: reseting forms Pin
Pete O'Hanlon21-Jul-08 10:44
mvePete O'Hanlon21-Jul-08 10:44 
GeneralRe: reseting forms Pin
shwaguy22-Jul-08 8:59
shwaguy22-Jul-08 8:59 

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.