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

Search:

Type: Posts; User: babaliaris

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. GCC links extern function with the wrong symbol while Visual C++ does it correctly.

    Hello!

    I'm experiencing a bug right now with dynamic linking. I have an extern c function which compiles in a dll project (VampEngine) and links in a console app (Application). In the console app...
  2. Re: [RESOLVED] Project run on Windows but on Linux getting segmentation fault (Mem ac

    The problem was https://en.wikipedia.org/wiki/One_Definition_Rule
  3. Re: Project run on Windows but on Linux getting segmentation fault (Mem access violat

    OMG I FOUND IT but I'm not sure how to solve it.

    The Core class has two implementations of the Core::MainLoop(). One is implemented inside the DLL and the other in the client. The client's...
  4. [RESOLVED] Project run on Windows but on Linux getting segmentation fault (Mem access violation)

    Edited: Check my reply, I located the problem.

    Hello!

    This is my Project on GitHub. You can check it out, it's really small because I just started it. I also support a premake script if you...
  5. Re: Visual Studio Regex Replace Line That Starts WIth A Letter.

    c++

    I also found the solution I was looking for (below is the regular expression):


    #.*.*


    This will replace any text that starts with # and contains any other character except the new...
  6. Re: Visual Studio Regex Replace Line That Starts WIth A Letter.

    Sorry, I thought because these topics are about visual c++, it would be a good place to ask about visual studio. Anyway, creating your own program to do that (as you mentioned) seems a good solution...
  7. [RESOLVED] Visual Studio Regex Replace Line That Starts WIth A Letter.

    Hello!

    I have something like this with thousands of comments (#)



    # The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the
    # initial value of a variable or macro /...
  8. Can you help me to decide which web hosting to buy?

    I want to set up a MySQL server that will not deal with too many data.
    This database works with a local store system that does not exceed the 3000 clients .
    The database just keeps information...
  9. Re: Is it a good practice to have half implementation into headers and half to .cpp f

    Yea that's it. I know about Pointer To Implementation but when I was doing that I didn't thought that I will need it at that point.
    I have increased the difficulty of my project for no reason...
  10. Is it a good practice to have half implementation into headers and half to .cpp file?

    Hello!

    I'm trying to make a library in C++ in such a way that code which I don't want the client to recompile, be inside a .dll and the rest of it is implemented into the header files so that the...
  11. Re: OpenGL Glew fails to keep Initialization across dlls and client exe application!

    I was trying to use unique_ptr but the method file.read() doesn't accept it. To I have to to call a method from the unique_ptr object to return a raw pointer? I don't really know how to use these...
  12. Re: OpenGL Glew fails to keep Initialization across dlls and client exe application!

    By the way It was fixed when I changed the code:


    //Allocate memory to store the data.
    char *data = (char *)malloc(sizeof(char) * size );


    To:
  13. Re: OpenGL Glew fails to keep Initialization across dlls and client exe application!

    Can you tell me what causes this debug error below? I have encountered it a lot of times and don't know what it means.

    35447

    This is where it occurs:
    35445

    You can also read the code here...
  14. Re: OpenGL Glew fails to keep Initialization across dlls and client exe application!

    OMG I'm so dump!!! I was calling the function that handles gl calls before I run the function that initialize GLEW :p Shame on me.
    Anyway problem solved. And I've done this before a lot of times...
  15. Re: OpenGL Glew fails to keep Initialization across dlls and client exe application!

    I think I have no clue how to do that :p
  16. Re: OpenGL Glew fails to keep Initialization across dlls and client exe application!

    Yes, the allocation of GLEW is happening only on the dll. The client just calls extern functions that does this job, and don't mess with any GLEW code. The thing is that the problem is getting caused...
  17. OpenGL Glew fails to keep Initialization across dlls and client exe application!

    Hello!

    I have a problem when I'm trying to call GL calls. I get memory access violation. I know that this error is usually occurs if you haven't initialize GLEW or any other OpenGL function...
  18. Re: C++ Library with DLL exports for hiding implementation.

    Anyway, I think i got this.

    I compiled the code below with visual c++ into a dll and then used that into a Client program which I compiled it with mingW g++. It worked like a charm.

    Window.hpp...
  19. Re: C++ Library with DLL exports for hiding implementation.

    I noticed something really important!!!! Take a look again into my code:

    Window.hpp


    #ifndef VAMP_ENGINE_WINDOW_H
    #define VAMP_ENGINE_WINDOW_H
    #include <iostream>
    #include "ExportDLL.h"
  20. Re: C++ Library with DLL exports for hiding implementation.

    I need a guide that explains everything in detail... I sort of understand what you're saying but still I'm sure I don't know exactly what is going on.
  21. Replies
    2
    Views
    2,525

    Sticky: Re: C++ Core Guidelines

    This seems really helpful! I must read it since I started learning C++ just from practice (coming from C), without reading any books or guides (well I watched some Youtube videos too :p ). I hope...
  22. Re: C++ Library with DLL exports for hiding implementation.

    If the members are public, is this a yes-yes??? Or I should not reference any class objects through a .dll function (in general) and instead use only C struct objects?
  23. Re: C++ Library with DLL exports for hiding implementation.

    Well the code is compiling and running without problems.


    If I try to put it like this:


    friend extern "C" VAMP_ENGINE_EXPORT int InitializeWindowImpl(WindowImpl *window, const char *title,...
  24. Re: C++ Library with DLL exports for hiding implementation.

    Also what is this inconsistent dll linkage warning that I'm getting? It's happening int the code below:


    //WindowImpl Class Functions.
    extern "C" VAMP_ENGINE_EXPORT int...
  25. Re: C++ Library with DLL exports for hiding implementation.

    Thank god! Also it make's sense, because the dll will be binary machine code anyway. I prefer to use const char * for cross platform compatibility.
    So in conclusion, my code is fine as long as I...
Results 1 to 25 of 88
Page 1 of 4 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)