Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

Anderson Jogie

@Anderson Jogie
About
Posts
11
Topics
4
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Debuging in VC++ 6.0
    A Anderson Jogie

    Thanks, I can now run the debuger and see the error log bellow. How will I know which part of the code the application locks up? The step into is grayed out once the debuger startes. The logs dont really tell you where it locks up in the code It show the dll that are beening loaded at runtime. Thanks again.

    C / C++ / MFC question c++ visual-studio debugging tutorial

  • Debuging in VC++ 6.0
    A Anderson Jogie

    Question: How to I Debug a class that lockup during runtime usng the debug function in MS VS 6.0? At the "Start Debug" option there are "GO", "Step Into" and "Run Cursor". I tied to click on the Go option and get a message saying the the FileName.exe not found. Although the project was complied without any errors. :confused: Thanks!

    C / C++ / MFC question c++ visual-studio debugging tutorial

  • Sorting a list in VC++
    A Anderson Jogie

    Thanks for the insight. I have create a little functor to work with the sort function but getting an error. there is something that I am not doing right. Thanks for your help. :) Functor code: bool RDLTemporaryResource::SortByTime:public std::binary_function<RDLRun*, RDLRun*, bool> { bool operator() (RDLRun* a, RDLRun* b) const { if( a->GetDepartureTime() < b->GetDepartureTime() ) return 1; else return 0; } } Compiler error message: --------------------Configuration: fstool - Win32 Debug-------------------- Compiling... TEMPRES.CPP c:\program files\ilps\code\fstool\tempres.cpp(837) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Error executing cl.exe. fstool.dll - 1 error(s), 0 warning(s)

    C / C++ / MFC c++ algorithms

  • Sorting a list in VC++
    A Anderson Jogie

    Do you know of any better way to approach this scenario? Sort those objects in acending order by within a list? Thanks.

    C / C++ / MFC c++ algorithms

  • Sorting a list in VC++
    A Anderson Jogie

    I am trying to sort a list using the insertion sort algo, but my application crashes. I think those pointers lost track by using the remove function. Is there a better way to sort except using the sort() (list.sort() function). It does not work too well with it since I am sorting by Departure Time of the object in the list. Here is the code i wrote: //Insertion sort to sort runs by departure time in the Res_RunList int numruns = Res_RunList.size(); //the size of the list ListOfRuns::iterator Tempitr1; //create itr poniters to navigate thru the list ListOfRuns::iterator Tempitr2; ListOfRuns::iterator Tempitr3; ListOfRuns::iterator Tempitr4; ListOfRuns::iterator Tempitr5; ListOfRuns::iterator Tempitr6; std::list <RDLRun*> TempList; ListOfRuns::iterator Tempitr7; Tempitr1 = Res_RunList.begin(); //points to the 1st element Tempitr2 = Res_RunList.begin(); Tempitr6 = Res_RunList.begin(); for(int low = 1; low < numruns; ++low) { ++Tempitr2; //points to low position RDLRun *TempRun = (*Tempitr2); // store the data from low position in TempRun int u = low -1; Tempitr3 = Tempitr2; Tempitr4 = Tempitr3--; //ponits to u position //compare the time windows while(u >=0 && ( (*Tempitr4)->GetDepartureTime() > TempRun->GetDepartureTime() ) ) { Tempitr5 = Tempitr4; Res_RunList.insert(Tempitr5++, (*Tempitr4)); Res_RunList.remove((*Tempitr5++));//to prevent duplicate --u; --Tempitr3; }//end while loop if(u > 0 || TempRun->GetDepartureTime() > (*Tempitr1)->GetDepartureTime()) { Res_RunList.insert(Tempitr4++, TempRun); Res_RunList.remove((*Tempitr4++)); } else{ Res_RunList.insert(Tempitr6++, (*Tempitr1)); Res_RunList.remove((*Tempitr6++)); Res_RunList.insert(Tempitr1, TempRun); } }//end for loop Thanks. ;)

    C / C++ / MFC c++ algorithms

  • Error message in MS visual c++ 6.0
    A Anderson Jogie

    I am running a VC++ application, got a fatal error, clicked on the debug button, and the debugger open to this page which I have some problem understanding. Will like to get some help on how to interpret this error message. Thanks much. :) RDLLocation *GetDemandLocation() { return pDemandLocation; //this is where the deburgger yellow arrow is pointing } - this 0xdddddddd - RDLLoObject {...} - RDLDatabaseObject {...} - TStreamableBase {...} __vfptr CXX0030: Error: expression cannot be evaluated loadStatus CXX0030: Error: expression cannot be evaluated - Name {???} m_pchData CXX0030: Error: expression cannot be evaluated - _destructCB {...} __vfptr CXX0030: Error: expression cannot be evaluated _enabled CXX0030: Error: expression cannot be evaluated _needToInvoke CXX0030: Error: expression cannot be evaluated _doorOpen CXX0030: Error: expression cannot be evaluated _srcObj CXX0030: Error: expression cannot be evaluated - _cbList {...} allocator {...} _Head CXX0030: Error: expression cannot be evaluated _Size CXX0030: Error: expression cannot be evaluated - _valueCB {...} __vfptr CXX0030: Error: expression cannot be evaluated _enabled CXX0030: Error: expression cannot be evaluated _needToInvoke CXX0030: Error: expression cannot be evaluated _doorOpen CXX0030: Error: expression cannot be evaluated _srcObj CXX0030: Error: expression cannot be evaluated - _cbList {...} allocator {...} _Head CXX0017: Error: symbol "" not found _Size CXX0030: Error: expression cannot be evaluated ulDisplayFlags CXX0030: Error: expression cannot be evaluated pLoadItemSet CXX0017: Error: symbol "CSet<RDLLoadItem,1>" not found pDemandLocation CXX0030: Error: expression cannot be evaluated pSupplyLocation CXX0030: Error: expression cannot be evaluated pProTransResSet CXX0017: Error: symbol "CSet<RDLString,1>" not found pTimeWindowSet CXX0017: Error: symbol "CSet<RDLShipmentTimeWindow,1>" not found - LoadRef {???} m_pchData CXX0030: Error: expression cannot be evaluated ShipmentDemandType CXX0030: Error: expression cannot be evaluated Demand1 CXX0030: Error: expression cannot be evaluated Demand2 CXX0030: Error: expression cannot be evaluated Demand3 CXX0030: Error: expression cannot be evaluated LoadRate1 CXX0030: Error: expression cannot be evaluated LoadRate2 CXX0030: Error: expression cannot be evaluated LoadRate3 CXX0030: Error: expression cannot be evaluated UnLoadRate1 CXX0030: Error: expression cannot be evaluated UnLo

    C / C++ / MFC help c++ debugging tutorial question

  • MCF question
    A Anderson Jogie

    Right. So I am having problems transferring the data from the vector to the list. How do I work around doing that in my case? I tied casting, it compiled but the application crashes at runtime. Thanks.

    C / C++ / MFC c++ question graphics tutorial

  • MCF question
    A Anderson Jogie

    Well I guess it did not compile fully earlier, I am still getting the compiler error message below when I tried to copied the data from a vector to a list. ompiling... FSSCHED.CPP c:\program files\ilps\code\fstool\fssched.cpp(1165) : error C2664: 'push_back' : cannot convert parameter 1 from 'class RDLTemporaryResource *' to 'class RDLResource *const & ' Reason: cannot convert from 'class RDLTemporaryResource *' to 'class RDLResource *const ' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Error executing cl.exe. fstool.dll - 1 error(s), 0 warning(s)

    C / C++ / MFC c++ question graphics tutorial

  • MCF question
    A Anderson Jogie

    I forget to mention it's two different data types see code below: std::list TempRes; TempRes.clear; std::vector::iterator it; for (it = TempResList.begin(); it != TempResList.end(); it++) TempRes.push_back(*it); Thanks the help on this.

    C / C++ / MFC c++ question graphics tutorial

  • MCF question
    A Anderson Jogie

    Yes : std::vector to std::list What is the best method to copy the data? Can you give an example? Thanks.

    C / C++ / MFC c++ question graphics tutorial

  • MCF question
    A Anderson Jogie

    Do anyone know how to convert a vector to a list in Visual C++? I tried casting, it does not work for me.

    C / C++ / MFC c++ question graphics tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups