Bug 2023 - Code bug in __win32__
Code bug in __win32__
Status: RESOLVED WORKSFORME
Product: ns-3
Classification: Unclassified
Component: core
pre-release
PC Windows
: P5 minor
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-25 02:14 UTC by whimsyduke
Modified: 2015-01-07 14:53 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description whimsyduke 2014-11-25 02:14:53 UTC
In the file "src\core\model\system-path.cc".
Line 127 :
    DWORD status = GetModuleFilename (0, lpFilename, size);
Line 133:
    status = GetModuleFilename (0, lpFilename, size);

The function "GetModuleFilename" may be "GetModuleFileName", which is define in "libloaderapi.h".

Line 249 :
    hFind = FindFirstFile (path.c_str (), &FindFileData);

The variable "FindFileData" don`t define in anywhere. Maybe it is "fileData", which is define in line 247.

In ns-3-win2, all of these bug are not exist.
Comment 1 Brian Swenson 2014-11-26 18:21:44 UTC
Hello

You definitely want to be using ns-3-win2 (http://code.nsnam.org/jabraham3/ns-3-win2).  It's based on a later version of ns-3, (3.18 vs 3.12) and has had much more testing and verification performed on it.

Sorry for the confusion.
Comment 2 whimsyduke 2014-11-26 23:15:48 UTC
(In reply to Brian Swenson from comment #1)
> Hello
> 
> You definitely want to be using ns-3-win2
> (http://code.nsnam.org/jabraham3/ns-3-win2).  It's based on a later version
> of ns-3, (3.18 vs 3.12) and has had much more testing and verification
> performed on it.
> 
> Sorry for the confusion.

I am trying to modify the code of ns-3.21. And so I need consult ns-3-win2. 
I am new in NS-3 and also in C++.

Thank you for your work.
Comment 3 Brian Swenson 2015-01-07 14:53:56 UTC
Was using old version