Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: vivendi

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,050

    Writing a Lexical Analyzer/Parser

    Hi, i'm trying to learn more about how Lexical Analyzers/Parsers work. I haven't coded any classes yet, because i'm not really sure how the entire process from a Lexer to working code goes.

    My...
  2. Replies
    0
    Views
    865

    read pixels from back buffer

    I want to read the pixels from the back buffer. But all i get so far is a black screen (the clear color).

    The thing is, is that i don't need a glut window to draw to. Once i have the pixel...
  3. Replies
    1
    Views
    485

    call method in dynamic object?

    Hi, i have some sort of Factory class which creates an instance of another class like so:



    public object setDispatcher ( string obj )
    {
    this.dispatcher =...
  4. Replies
    5
    Views
    1,149

    Re: [C++] get results of console

    So with other words, it's not really possible in Windows to get the entire output pf a console window?? Eventhough my app is the one opening that console app...?
  5. Replies
    5
    Views
    1,149

    [C++] get results of console

    I have a Win32 app and with that app i'm going to open another .exe file. That other .exe file is a console app and it will write some data to that console. Now i was wondering if there's anyway my...
  6. Replies
    17
    Views
    1,145

    Re: calling function in dll not working

    Got it fixed. I had to use declspec(export). This is how it looks right now:



    extern "C" __declspec(dllexport) int testfunc ( int x );

    ..
    ..

    int testfunc (int x)
  7. Replies
    17
    Views
    1,145

    Re: calling function in dll not working

    A lib file would be easier, but in my case i really need a dll.
    When i used dumpbin on my dll it gave me the following output:

    dumpbin \EXPORTS path\to\file.dll
    File Type: DLL

    Summary

    ...
  8. Replies
    17
    Views
    1,145

    Re: calling function in dll not working

    I see what you mean, but that's how C++ export function names. But since i'm using extern "C" now i avoid that name mangling, right..?
  9. Replies
    17
    Views
    1,145

    Re: calling function in dll not working

    Nope, didn't work either :(
  10. Replies
    17
    Views
    1,145

    Re: calling function in dll not working

    @hoxsiew
    The return value of GetProcAddress is 0x00000000. So for some reason it can't find it...

    @Igor Vartanov
    You mean that the function name in my dll should also have 'extern' infront of...
  11. Replies
    17
    Views
    1,145

    Re: calling function in dll not working

    I don't know how i got that mixed up, but i changed it. But it's still not working.



    typedef int (* testfunc)(int);

    //in my main function
    testfunc bla(0);
    dllEngine = LoadLibrary (...
  12. Replies
    17
    Views
    1,145

    calling function in dll not working

    I'm trying to call a function in a dll. I created this dll myself too. When i run my code i get am 'Exception unhandled' error. Can someone please tell me what i'm doing wrong?

    In my exe file i...
  13. Replies
    4
    Views
    458

    Re: [C++]call functions from dll

    I do know the functions that the DLL have and what parameters they need. I just still don't see how i can call them from my executable.

    Normally i would do it like this:



    typedef int...
  14. Replies
    4
    Views
    458

    [C++]call functions from dll

    If i have an executable which loads a DLL, is it then possible that the executable can call functions from the DLL eventhough it doesn't know what functions exist in that DLL ??

    The executable...
  15. Replies
    3
    Views
    392

    change class object

    Suppose i have the following classes:


    class testA
    {
    public int myVar = 12;
    }

    class testB
    {
  16. Replies
    11
    Views
    978

    Re: [c++] typedef class

    Ok thanks, then i have another question about a class. Suppose i have the following code:



    class cBlaat
    {
    public:
    DoSomething();
    };
  17. Replies
    11
    Views
    978

    [c++] typedef class

    If i have the following class:



    class cBlaat
    {
    public:
    void SomeFunc();
    };
  18. Replies
    6
    Views
    2,526

    Re: [C++] DLL - extern "C" and class objects

    Thanks both, for the answers. I never thought it would be this complicated to create a dl.

    I guess i'll have to release 2 different DLL's. One for C++ programmers and one for C# .NET programmers....
  19. Replies
    6
    Views
    2,526

    [C++] DLL - extern "C" and class objects

    I want to create a dll in C++ (NOT MFC) in a way so that others can use the functionality that i've build in my dll. So with other words, when someone is programming C#, he should be able to add my...
  20. Replies
    1
    Views
    402

    can;t create a dll?

    I wanted to create a new Win32 DLL project. But i don't see any option for creating a DLL...
    I'm using Visual Studio 2008 Professional, so it should be there right?

    I Create a new project, click...
  21. Replies
    2
    Views
    541

    getting 2 words from a sentence

    Hey, suppose i have the following sentence:

    "Lorem ipsum dolor sit amet, consectetur adipiscing elit."

    Now i need to split this sentence into pieces of two words. So i need the following...
  22. Replies
    7
    Views
    525

    Re: class in dictionary

    yep that true. the main class, panel.cs should be able to inherrit multiple instances of any other gui class of mine
  23. Replies
    7
    Views
    525

    Re: class in dictionary

    actually im not using the default controls but im using images that look like controls. thats why im making a class for each control.
  24. Replies
    7
    Views
    525

    Re: class in dictionary

    Well it's like this.
    I'm trying to make a custom GUI class. So for instance i have these classes:

    Panel.cs
    Button.cs
    Label.cs
    Image.cs

    Now a panel would be the first thing i want to create,...
  25. Replies
    7
    Views
    525

    class in dictionary

    Hey, i want to store multiple instances of a class inside a dictionary. I believe this is the way to do such a thing:

    private Dictionary<int, aClass> childs = new Dictionary<int,...
Results 1 to 25 of 102
Page 1 of 5 1 2 3 4


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center