Bug 2023

Summary: Code bug in __win32__
Product: ns-3 Reporter: whimsyduke <whimsyduke>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED WORKSFORME    
Severity: minor CC: bswenson3, ns-bugs, tomh
Priority: P5    
Version: pre-release   
Hardware: PC   
OS: Windows   

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