Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
A

asugix

@asugix
About
Posts
14
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • source code example in tips n tricks
    A asugix

    thank's. By making my old article unfinished, I can link the file from my new tips n trick article. Maybe the problem is i can't make it unfinished by myself. So I leave it that way

    No one can prevent me to learn something

    Site Bugs / Suggestions tutorial question

  • source code example in tips n tricks
    A asugix

    I made an article. But the editor thinks it more suited as a tips, so he create a copy to tips and marked the article as unfinished. I want to keep the 'tips' and delete the 'article' but the links on the 'tips' point to the 'article' which means (I think) the link will break when I delete the article. How to post source code example files in tips? I don't want to delete the 'tips' because the comment and the bookmark from others. Although I've marked the article as programming tips (duplication)

    No one can prevent me to learn something

    Site Bugs / Suggestions tutorial question

  • monodevelop
    A asugix

    anyone knows how to compile monodevelop from sourcecode with mingW on windows? I have mono installed, monodevelop source, and mingw installer but I don't know how to use it Thank's (sorry if i posted in wrong place, I don't see other place fit)

    No one can prevent me to learn something

    .NET (Core and Framework)

  • trim problems
    A asugix

    thank's. Maybe that's why sometimes it work and sometimes not

    No one can prevent me to learn something

    C# help tutorial question

  • trim problems
    A asugix

    I'm using trim function and supposed to have my string trimmed. But my string remains same. For example : " hello", the result is : " hello". But I suppose the result is : "hello". Is anyone have same problem? Anyone knows the replacement function? If using VB, I don't have problem on string operation:confused:

    No one can prevent me to learn something

    C# help tutorial question

  • threading with events
    A asugix

    When I found breakpoint and run step by step, I know if my thread is running. Thank's, I move the question in the forum below article

    No one can prevent me to learn something

    C# tutorial question csharp com design

  • threading with events
    A asugix

    this question especially for Sacha Barber because I learn threading from his article (Beginners Guide To Threading In .NET Part 2 of n). First Question : how to end / exit thread? From tutorial and MSDN help, I assume that thread is end when the thread function ends. Is this true ? Before 2nd question, this is my code on worker thread:

    public event ReportConversion ReportConversionDone;
    ...
    private void RutinKonversi(object fListobj)
    {
    ...
    OnStatusReport(pd); //raising event
    }
    protected void OnStatusReport(ProggressDoneEventArgs e)
    {
    if (ReportConversionDone != null)
    {
    ReportConversionDone(this, e);
    }
    }

    This is my code on UI thread for handling thread event:

    void conv_ReportConversionDone(object sender, ProggressDoneEventArgs e)
    {
    //marshal to UI thread
    if (sender == conv)
    {
    context.Post(new SendOrPostCallback(delegate(object gakPenting)
    {//inline code or anonymous method
    #region code event handler cross thread
    switch (e.ItemToReport)
    {
    ...
    }
    #endregion
    }), null);
    }
    }

    When I try passing data from background thread to UI, By putting breakpoints, I know if the thread is executed once. When I start worker thread for the first time (when application just started), event handler on UI is executed once. But when I start for third times, event handler is executed three times too. My 2nd question is : how to make event handler just executed once whenever worker thread is done. This is the screenshot : first time[^] third time I pressed extract[^]

    No one can prevent me to learn something

    C# tutorial question csharp com design

  • icons
    A asugix

    try to search "tango images" on google. The're many great and catchy icon / images with GNU licence

    No one can prevent me to learn something

    C#

  • signature of _inp and _outp in msvcrt.dll
    A asugix

    I think it nonsense if some application can access parallel port without additional driver but I must provide own driver. After attach an "dll viewer" to "portmon", I found exported function called _inp and _outp inside msvcrt.dll or msvcr80.dll. It looks like same with _inp and _outp function on turbo c++ compiler. When I try to call with

    [DllImport("msvcrt.dll",EntryPoint = "_outp")]
    public static void OutP(int address, int value);

    there's no exception occurs, but my application always shutted down with errors. Is someone there know what signature of "_outp" is? or know whats wrong with my program? (my program just have two textboxes to input address and value and one button to execute)

    No one can prevent me to learn something

    C# c++ question

  • Problem loading with dll
    A asugix

    Of course that dll's is in the same place. I copied that Dll into Debug and Release directory. That's why my Code work when I change unsafe public override string Text with unsafe public string TheText Both can't work if the Dll is not in the right directory, right? I'm still confused with this problem:confused:

    No one can prevent me to learn something

    C# help

  • Tab
    A asugix

    maybe you can add tab container, and if you create new child like : FormChild form1 = new FormChild(); // form Child is configured Child form by you create new tab page too: TabPage tab1 = new TabPage(); and then attach your new Child form at that page like:

    form1.MdiParent = MyParentForm; //this is your parent form
    form1.Parent = tab1 ; //any container will do

    I try something like this on many tabbed application, but I don't try at calendar like yours.

    No one can prevent me to learn something

    C# help

  • Problem loading with dll
    A asugix

    I have problem with dll loading (windows says "Unable to load DLL 'Scilexer.dll', the spesified module could not be found. Exception from HRESULT : 0x8007007E). this problem occurs when I try to override :

    unsafe public override string Text
    {
    get
    {
    int sz = win32Access.SendSciMessage(directPointer,(int)ScintillaEnum.Selection.SciGetLength,0,0); //form designer says that the problem occurs at this line

    but when I change the name so that it no longer override, It can works. I can use this custom control again

    unsafe public string TheText
    {
    get
    {
    int sz = win32Access.SendSciMessage(directPointer,(int)ScintillaEnum.Selection.SciGetLength,0,0);

    please anyone help me to explain this.:confused:

    No one can prevent me to learn something

    C# help

  • how to use SciLexer.dll
    A asugix

    thank's for link. That sure answer my question. So that my "createWindowsEx" failed. But I don't know why

    C# tutorial debugging question

  • how to use SciLexer.dll
    A asugix

    I try to use SciLexer.dll by looking from vb example (SciTry.vb):

    private static IntPtr sci;
    public static void LoadSci(Module m, IntPtr hWnd)
    {
    IntPtr resVal = LoadLibrary("SciLexer.dll");
    sci = CreateWindowEx(WS_EX_CLIENTEDGE, "Scintilla",
    "TEST", WS_CHILD Or WS_VISIBLE, 0, 0, 200, 200,
    hWnd, 0, m, 0);
    }

    it's not work. Then I create breakpoint on this function, resVal have some values, but sci = 0. Is this mean "CreateWindowEx" failed? thank's

    C# tutorial debugging question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups