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
G

goupil

@goupil
About
Posts
3
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • ReadClass & WriteClass
    G goupil

    hi, everybody I'm using CArchive constructed on CSocketFile and i'm trying to serialize CMsg objects like this : (note : ar is my archive and msg my message to serialize) ar.WriteClass(msg.GetRuntimeClass()); //it works fine ar.WriteObject(&msg); //works fine and at the other side of the network i have : CRuntimeClass * pClass = ar.ReadClass(); //this throw me an error CArchiveExceptionError::badIndex Any ideas about this ?

    C / C++ / MFC

  • template & IMPLEMENT_SERIAL ??
    G goupil

    Many Thanks for your respond, it will avoid me long hours of research :))

    C / C++ / MFC

  • template & IMPLEMENT_SERIAL ??
    G goupil

    hi, i have a problem with the macro IMPLEMENT_SERIAL. Because my class TempClass is Template and when i try to insert the macro into the .h file, the compiler says i have to write the arguments of TempClass. Does someone have an idea ? Here's the code : ******************************************* template class TempClass : public Msg { DECLARE_SERIAL(TempClass ) TempClass(); ~TempClass(); //here the rest of class declaration... virtual void Serialize (CArchive& ar); }; IMPLEMENT_SERIAL(TempClass ,Msg,1) //it crashes here template TempClass ::TempClass () { ... } ...

    C / C++ / MFC
  • Login

  • Don't have an account? Register

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