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
J

javad_2005

@javad_2005
About
Posts
64
Topics
40
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Mirror Driver
    J javad_2005

    i know how to create project of ddk mirror driver but i dont know how to debug it i use ddkbuild but i dont know to use it. may give some project with ddkbuild

    C / C++ / MFC visual-studio help tutorial

  • Mirror Driver
    J javad_2005

    i am new driver development . i want to know how to create project display Mirror driver project with vs... is there any wizard to create this project or i will create from begin. please help me. thanks

    C / C++ / MFC visual-studio help tutorial

  • wave Format:Mpeg-Layer 3
    J javad_2005

    i have one file of Type=Wave(Microsoft) Format= mpeg layer-3 Audio=20kb/s,11025 hz,mono times=10:04:31.909 /////////////////// directshow get me wrong time and cant seek by samples mcisendstring get me wrong time too and can seek by samples but wrong just sony Sound Forg Application can play it and get me true time and can seek and get me count of samples . now i dont have idea for play this file and seek by samples. if u have any way solve my problem . i want to play this file and seek by samples.

    C# help

  • load mp3 and seek by samples
    J javad_2005

    seek by samples not by ms i means "time format samples" thanks

    C / C++ / MFC question

  • load mp3 and seek by samples
    J javad_2005

    thanks .but can be directshow sdk seek by samples.

    C / C++ / MFC question

  • load mp3 and seek by samples
    J javad_2005

    hi i have one file of wave-Mpeg layer3 11025 16 channel 1. mciSendstring can be load this mp3 and play it but doenst work correctly when i get position by samples mcisendstring give me wrong. or give me wrong time . i want to load mp3 and seek by samples and get position by samples. do u have any way? thanks.

    C / C++ / MFC question

  • Play Audio File
    J javad_2005

    hi all. i want to read pieace of data from wave file and play data. i dont want to write data to other Wave file and play it/ i want to play data in memory or ram not diffrent just without write file but i dont know how is it? thanks

    C# performance question

  • Play Sound File
    J javad_2005

    how to play sound file from one time to one time?

    C / C++ / MFC tutorial question

  • Socket File Transfer
    J javad_2005

    Server Code: enum Command { NULL, Message, CreateFile, WriteFile, Close }; Object ^ RawDeserialize(array<Byte> ^rawdatas, Type ^anytype ) { int rawsize = Marshal::SizeOf(anytype ); if( rawsize > rawdatas->Length ) return nullptr; IntPtr buffer = Marshal::AllocHGlobal( rawsize ); Marshal::Copy( rawdatas, 0, buffer, rawsize ); Object ^retobj = Marshal::PtrToStructure( buffer, anytype ); Marshal::FreeHGlobal( buffer ); return retobj; } ////////////////////////// [StructLayout(LayoutKind::Sequential, Pack=1, CharSet=CharSet::Ansi)] ref struct TcpPacket { [MarshalAs(UnmanagedType::ByValArray,ArraySubType=UnmanagedType::LPWStr,SizeConst=4096)] array<Byte>^data; //////////Packet Buffer Command cmd; /////Command int Length; /////////Data Length public: TcpPacket() { cmd=Command::NULL; data=gcnew array<Byte>(4096); } }; /////////// ref struct ClientInfo { Socket ^socket; array<Byte> ^Buffer; }; /////////// private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { Socket ^TcpSocket=gcnew Socket(AddressFamily::InterNetwork,SocketType::Stream,ProtocolType::Tcp); IPEndPoint ^ipEndPoint=gcnew IPEndPoint(IPAddress::Any,5400); TcpSocket->Bind(ipEndPoint); TcpSocket->Listen(0); ///////////////// TcpSocket->BeginAccept(gcnew AsyncCallback(this,&Form1::OnAccept),TcpSocket); } void OnAccept(IAsyncResult ^ar) { ClientInfo ^info=gcnew ClientInfo; Socket ^socket=safe_cast<Socket ^>(ar->AsyncState); Socket ^SockAccept=socket->EndAccept(ar); TcpPacket ^Packet=gcnew TcpPacket; ////New Packet For Get Packet Size int PSize=Marshal::SizeOf(Packet);/////////Get Packet Size info->socket=SockAccept; info->Buffer=gcnew array<Byte>(PSize); SockAccept->BeginReceive(info->Buffer,0,PSize,SocketFlags::None,gcnew AsyncCallback(this,&Form1::OnReceive),info); } void OnReceive(IAsyncResult ^ar) { ClientInfo ^info=safe_cast<ClientInfo ^>(ar->AsyncState); info->socket->EndReceive(ar); ///Deserialize Buffer TcpPacket ^Packet=gcnew TcpPacket; Type ^typeTcpPacket=Type::GetType(String::Format("{0}",Packet)); Packet=(TcpPacket ^)RawDeserialize( info->Buffer,typeTcpPacket); /////////////////////////// ReleasePacket(Packet); int PSize=Marshal::SizeOf(Packet); info->

    Managed C++/CLI sysadmin data-structures performance

  • Socket File Transfer
    J javad_2005

    Server Socket ^s.... FileStream ^fs.. array^data=gcnew array(4096); int len; do { len=fs->Read(data,0,4096); s->Send(data,0,len); } file Send but don't Complete i think socket send byte with Speed and data Replace with data!

    Managed C++/CLI sysadmin data-structures performance

  • Error in StructureToPtr
    J javad_2005

    [StructLayout(LayoutKind::Sequential, Pack=1, CharSet=CharSet::Ansi)] ref struct MyStruct { [MarshalAs(UnmanagedType::ByValArray, SizeConst=1024 )] array<Byte>^data; }; /////////////////////// array<Byte> ^Serialize(MyStruct ^Struct) { int len=Marshal::SizeOf(Struct); IntPtr ptr=Marshal::AllocHGlobal(len); array<Byte>^ rawdatas = gcnew array(len); try { Marshal::StructureToPtr(Struct,ptr,false); Marshal::Copy( ptr, rawdatas, 0, len ); Marshal::FreeHGlobal( ptr ); ////////////////////////////////////////////////////////////////// return rawdatas; } catch(ArgumentException ^e) { MessageBox::Show(e->Message); } return rawdatas; } ////////////// Error in StructureToPtr: Type could not be marshaled because the length of an embedded array instance does not match the declared length in the layout.

    Managed C++/CLI hardware data-structures regex help

  • Error in StructureToPtr
    J javad_2005

    [StructLayout(LayoutKind::Sequential, Pack=1, CharSet=CharSet::Ansi)] ref struct MyStruct { [MarshalAs(UnmanagedType::ByValArray, SizeConst=1024 )] array^data; }; /////////////////////// array ^Serialize(MyStruct ^Struct) { int len=Marshal::SizeOf(Struct); IntPtr ptr=Marshal::AllocHGlobal(len); array^ rawdatas = gcnew array(len); try { Marshal::StructureToPtr(Struct,ptr,false); Marshal::Copy( ptr, rawdatas, 0, len ); Marshal::FreeHGlobal( ptr ); ////////////////////////////////////////////////////////////////// return rawdatas; } catch(ArgumentException ^e) { MessageBox::Show(e->Message); } return rawdatas; } ////////////// Error in StructureToPtr: Type could not be marshaled because the length of an embedded array instance does not match the declared length in the layout.

    Managed C++/CLI hardware data-structures regex help

  • Client/Server
    J javad_2005

    Hello I want To create Server , Client Application With Send ,Recive Struct . i Want work with TcpClient and Send Struct . ........................

    Managed C++/CLI sysadmin

  • Serializable And Deserialize
    J javad_2005

    When I Seriliaze Object In the File how To save Assembly Name And Typename with My self

    Managed C++/CLI tutorial

  • Serializable And Deserialize
    J javad_2005

    Thnak's and Very Good

    Managed C++/CLI tutorial

  • Serializable And Deserialize
    J javad_2005

    in SerializeApp : [SerializableAttribute] ref struct MyStruct { int n; int j; }; MyStruct ^my=gcnew MyStruct; my->j=1; my->n=1; FileStream ^file=gcnew FileStream("c:\\Test.dat",FileMode::Create); BinaryFormatter ^formatter=gcnew BinaryFormatter; formatter->Serialize(file,my); /////////////////////////////////////////// In DeserializeApp : FileStream ^file=gcnew FileStream("c:\\Test.dat",FileMode::Open); BinaryFormatter ^formatter=gcnew BinaryFormatter; try { MyStruct ^my=(MyStruct ^)formatter->Deserialize(file); } catch (SerializationException^ e) { textBox1->Text=e->Message; } Error: Unable to find assembly 'SerializeApp, Version=1.0.2987.23837, Culture=neutral, PublicKeyToken=null'.

    Managed C++/CLI tutorial

  • Serializable And Deserialize
    J javad_2005

    I can Serialize And Deserialize In One Application . i workinn Server And client Application so i need Send Struct to Client when i serialize Struct and Send , in client Application can't Deserialize Struct

    Managed C++/CLI tutorial

  • Serializable And Deserialize
    J javad_2005

    in Serialize Application :Project Name = AppSerialize ////////////////////////// Image ^image=Image::FromFile(file) FileStream ^file=gcnew FileStream(...) BinaryFormatter ^formatter=gcnew Binaryformatter; formatter->Serialize(file,image); //////////////////////////////////////////// In deserialize Application : Project Name =AppDeserialize Image ^image.... FileStream ^file=gcnew FileStream(FileSerialize) BinaryFormatter ^formatter=gcnew Binaryformatter; image=(Image ^)formatter->Dererialize(file); ///////// Error In Deserialize error : can not find assembly AppSerialize and .......

    Managed C++/CLI tutorial

  • Serializable And Deserialize
    J javad_2005

    In other Application When Deserialize Object errror : i can't find assembly Application name

    Managed C++/CLI tutorial

  • Serializable And Deserialize
    J javad_2005

    when i Serialize Object in My Application int the FileStream I can't Deserialize FileStream in Other Application . so how To Serialize Object in fileStream into My Application And Deserialize FileStream in other Application

    Managed C++/CLI 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