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

Search:

Type: Posts; User: sarmadys

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Re: Empty main invokes code of project classes

    Thanks Paul.

    I found the problem by using call stack. Unfortunately there was a static code which was being run.

    One of the variable initializations was calling the getInstance of my Settings...
  2. Re: Empty main invokes code of project classes

    Paul,

    - When I exclude all classes and files from the project, main function runs fine.

    - There is just this main function. I just tried to create errors in it so that I can see compiler will...
  3. Re: Empty main invokes code of project classes

    Paul,

    Thank you for your time. I changed the int to void purposefully to see what happens.

    When I change the main function name to main1, the program won't run. No, it is a 15000 lines of code...
  4. Empty main invokes code of project classes

    Hello

    In a Visual Studio 2010 project I have the following code:

    main.cpp

    #include <string>
    #include <vector>
    #include <iostream>
  5. Replies
    6
    Views
    1,508

    Re: Assigning a reference to another reference

    Thanks. It's very much appreciated.
  6. Replies
    2
    Views
    1,913

    pointer to member function

    Hello,

    I am trying to use "remove_if" with a predicate function inside a class. The code intends to remove the grid cells which an agent cannot move into (from among all possible cells).

    ...
  7. Replies
    6
    Views
    1,508

    Re: Assigning a reference to another reference

    Thank you very much for the explanation.

    May I know what we actually is put into the collection in below example?


    vector<EnvRegion> envRegions;

    function()
    {
    ...
  8. Replies
    6
    Views
    3,727

    Re: Storing objects of an hierarchy in a vector

    I am sorry to take more time of you. Boost documentation for ptr_vector does not describe what is exactly the benefit of using it instead of std::vector. May I know that?
  9. Replies
    6
    Views
    3,727

    Re: Storing objects of an hierarchy in a vector

    Thank you very much for your help and time.



    I used to have an ArrayList<Action> and just add all sub-class instances into it and it would not object.



    So by using pointers now I should...
  10. Replies
    6
    Views
    3,727

    Storing objects of an hierarchy in a vector

    Hello,

    I have a hierarchy of Actions (NonMovingActions and MovinActions each with sub-hierarchies). Actions class has an abstract function.


    class Action
    {
    public:
    Action(Agent& agent,...
  11. Replies
    6
    Views
    1,508

    Re: Assigning a reference to another reference

    Thank you very much for your time.

    The code is too big and I possibly need to write smaller snippets and see whether I can reproduce the problem in smaller code.

    Visual C++ error messages are...
  12. Replies
    6
    Views
    1,508

    Assigning a reference to another reference

    Hello,

    May I kindly know what is wrong with assigning a reference variable to another reference variable of the same type?

    I guess I have not understood references very well.

    1- In below...
  13. Replies
    8
    Views
    891

    Re: Two dimensional pointer to object

    Thank you for your time.

    - But if I recall correctly, any pointer could be NULL in normal C? right?

    - So how should I make a pointer to have a value of NULL? Use a (Agent) cast?

    - why the...
  14. Replies
    8
    Views
    891

    Two dimensional pointer to object

    Hello,

    I am migrating a scientific code from Java to C++.

    May someone please tell me what's wrong with the two functions? I can use the int** like a two dimensional array but not the Agent**.
    ...
  15. Replies
    7
    Views
    990

    Re: vector and namespaces in VC

    Paul,

    The code is almost 25000 lines. It's an academic simulator project I have converted (and downsized) from my larger Java code. The Java code has become slow and I am trying to overcome the...
  16. Replies
    7
    Views
    990

    Re: vector and namespaces in VC

    Thank you very much for your help.

    I moved the code to VS2010 (from 2008) and all those strange errors are gone. I guess the installation had problem (syntax error in VS header files?)

    I hated...
  17. Replies
    7
    Views
    990

    Re: vector and namespaces in VC

    Paul, thank you for your help and the time you spent.


    - Earlier I received an error that Vector is not in std and then I removed std for vectors.

    Error 23 error C2039: 'vector' : is not a...
  18. Replies
    7
    Views
    990

    vector and namespaces in VC

    Hello everyone,

    I am converting a MinGW32 project to Visual C++ and I am getting a lot of errors. I will appreciate if someone can help me with a few of them which I cannot understand.

    1- I...
  19. Fast inter-application communication for academic simulator

    Hello,

    I have an academic simulator software and I want to visualize its output at the same time the simulation is happening. However I want to separate visualization and simulation modules. The...
  20. Re: Replacement for Java Class (static) methods and variables

    Thank you very much.

    I used to know C++ before 2002 but now after 8 years it is unfortunate that I have forgotten very basic things. It's a shame.

    Using quote has been a mistake.
  21. [RESOLVED] Replacement for Java Class (static) methods and variables

    Hello,

    May I ask how we can create something like java's class methods and variables? These variables and methods do not require us to create an instance of the class and we can directly call them...
  22. Replies
    9
    Views
    924

    Re: Abstract Class like Java

    Thanks everyone for your great information. I really enjoyed every single message in this thread.
  23. Replies
    9
    Views
    924

    Abstract Class like Java

    Hi everyone,

    I am converting my large scientific simulation program into C++ (currently in Java). I appreciate if you can advise on below issues.

    My design has excessively used abstract classes...
  24. Calling a php script from inside an html file with the help of a JScript

    Hello,

    I need to call my php script from inside an html file.

    I have created a jscript source file:

    --- 1.js ----
    var myImage;
    myImage= new Image;
  25. Replies
    0
    Views
    646

    Popunders, How can I do?

    Hello,

    I want to add popunders (pop up window which loads behind active browser window).

    Would someone please give me a snippet code?


    Mac
Results 1 to 25 of 31
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)