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
Y

ytubis

@ytubis
About
Posts
83
Topics
54
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • pthread_cancel issue
    Y ytubis

    Hi, Thanks for the answer, it is a problem because this thread is monitoring a file which it waits (sleeps) on it till something changes, so if nothing changes we will still sleep on the IO forever, I free the global resources of the thread so this is not my cuncern, but do you know how to detach the thread from the process? Many thanks, Yossi,

    C / C++ / MFC help question career

  • pthread_cancel issue
    Y ytubis

    Hi, I have an issue when using this function, the scenario is like that: thread 1 invokes and creates thread 2 which monitors some data, using pthread_create with PTHREAD_CANCEL_ENABLE and PTHREAD_CANCEL_DEFERRED, then when thread 1 finishes his job it cancels thread 2 using pthread_cancel and everything is working fine, but the problem is that it seems that the threads are dead but still connected to the main projcess. I am usin QNX OS which is a BSD flavor, same as Unix, process view: 37560404 1 ./omadm_client 10r JOIN 5 37560404 2 ./omadm_client 10r CONDVAR 37560404 3 ./omadm_client 10r CONDVAR 37560404 4 ./omadm_client 10r REPLY 37560404 5 ./omadm_client 10r REPLY 37560404 6 ./omadm_client 10r DEAD 37560404 7 ./omadm_client 10r DEAD 37560404 8 ./omadm_client 10r DEAD 37560404 9 ./omadm_client 10r DEAD 37560404 10 ./omadm_client 10r DEAD is it ok? how can I detach them from my main proccess? I do not see the point of uisn pthread_join unless it needs to be invoked for the termination process.. Many thanks, Yossi,

    C / C++ / MFC help question career

  • Curser and panel size change
    Y ytubis

    Hi! I am trying to build a form that can resize objects(panels). I am trying to this with cruser change and resize the panel with the mouse with the drag drop events. I included the enter event but the point that I get from System.Windows.Forms.Cursor.Position is not changing no metter where I enter the panel object. Can someone tell me how can I know in which point my mouse is located on the form and see if it equals to the panel. another quastions is how I change the curser in the code??? I could not find a good example for this. Does some one has something or can point me to a good code example?? Thanks :) :)

    C# question tutorial

  • Resize Objects with Mouse
    Y ytubis

    Hi! I want to create few pannels(or any other object) that can be resized during run time. Where can I see example of how to so. I want that the mouse image will change to like in the design options in the .NET. and so I will be able to controll few pannels(objects) in a form and to arrange them like I want :). Can some one show me a good example of this or code example. Thanks :) :)

    C# tutorial csharp design

  • Use of functions from DLL using extern [modified]
    Y ytubis

    Thank you very much. But let me understand: I have created TCPlib.dll, this is the build for the library. I add this dll to the new project where I try to extern the function pointers. in the input linker I gave TCPlib.lib and another time TCPlib.dll and I get that the project can not find them: Error 1 fatal error LNK1104: cannot open file 'TCPlib.lib' ServerTest ServerTest I have the dll in the library of the project and also attached to the project as an Item. what am I doing wrong? Thanks for your help :)

    C / C++ / MFC c++ csharp visual-studio help question

  • Use of functions from DLL using extern [modified]
    Y ytubis

    Hi! I have build a TCP DLL, and now I want to use it. I have created all the typedefs for the function inside the DLL and now I want to use them with extern. I added the DLL to my linker as an input but I get errors: This is the code: extern TCPLIB_RETRIEVE_N_BYTES_PTR tcplib_retrieve_n_bytes_ptr; These are the errors: Error 1 error C2146: syntax error : missing ';' before identifier 'tcplib_retrieve_n_bytes_ptr' d:\my_documents\visual studio 2008\projects\servertest\servertest\servertest.cpp 6 ServerTest Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int d:\my_documents\visual studio 2008\projects\servertest\servertest\servertest.cpp 6 ServerTest What am I doing wrong here? Is there another place to define the DLL in my project? Thanks guys :) :)

    modified on Saturday, April 18, 2009 12:56 PM

    C / C++ / MFC c++ csharp visual-studio help question

  • Communication Problem [modified]
    Y ytubis

    This one I do not know how to do? Can you help me with this? Where and what do I need to do? Thanks :)

    C / C++ / MFC help question sysadmin

  • Communication Problem [modified]
    Y ytubis

    I have this library. I looked for other library and I tried it also and same problem. Error 1 error LNK2019: unresolved external symbol _sendto@24 referenced in function "public: void __thiscall CServer::Handle_Connection(void)" (?Handle_Connection@CServer@@QAEXXZ) CServer.obj Server Error 2 error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "public: void __thiscall CServer::Handle_Connection(void)" (?Handle_Connection@CServer@@QAEXXZ) CServer.obj Server Error 3 error LNK2019: unresolved external symbol _closesocket@4 referenced in function "public: void __thiscall CServer::Handle_Connection(void)" (?Handle_Connection@CServer@@QAEXXZ) CServer.obj Server all the communication functions????

    C / C++ / MFC help question sysadmin

  • Communication Problem [modified]
    Y ytubis

    Hi! I am trying to build my own Client Server in UDP. I have managed to create everything in classes. The problem is that when all the syntax errors finished, I am getting a link problems for all of the communication functions: sendto recvfrom WSACleanup closesocket and more. I have the library in the project: #include <winsock.h> The error is: Error 2 error LNK2019: unresolved external symbol _WSACleanup@0 referenced in function "public: void __thiscall CServer::Handle_Connection(void)" (?Handle_Connection@CServer@@QAEXXZ) CServer.obj Does anyone knows what is the problem? Thanks :) :)

    modified on Thursday, April 16, 2009 1:17 PM

    C / C++ / MFC help question sysadmin

  • CDATA Object
    Y ytubis

    Hi! How do I save CDATA Object in an XML file? Thanks :)

    C# question xml

  • Resize Objects
    Y ytubis

    How can I create Objects and make them resize them selves according to the Form. Objects like text Boxes Buttons and more. Is this is a property? Thanks for your help :0 :)

    C# question help

  • error LNK2001: unresolved external symbol
    Y ytubis

    Hi! I need help with this problem, I got this error before but I managed to solve. But now I have a case with the virtual function. The source looks like this(after the code I continued writing): #include "stdafx.h" #ifndef EMPTRANSH #define EMPTRANSH #include "Global.h" #include "iostream" #include "string" using namespace std; class EmpTrans { private: int id; char emp_name[MAXNAMELENGTH]; employee_status emp_st; int salary; salary_type sal_st; char deal_date[DATELENGTH]; public: EmpTrans(); static void Open(); static void Close(); void ReadNext(); virtual void Apply(); void UpdateId(int i){id = i;} void UpdateSalary(int s){salary = s;} void UpdateEmployeeStatus(employee_status es){emp_st = es;} void UpdateSalaryType(salary_type ss){sal_st = ss;} void UpdateDate(char * d){strcpy(deal_date,d);} void UpdateEmployeeName(char en){emp_name[0] = en;} int GetId(){return id;} char * GetEmployeeName(){return emp_name;} employee_status GetEmployeeStatus(){return emp_st;} int GetSalary(){return salary;} salary_type GetSalaryType(){return sal_st;} char * GetDate(){return deal_date;} }; #endif class EmpTransAdd : public EmpTrans { public: void Apply(); }; class EmpTransChange : public EmpTrans { public: void Apply(); }; class EmpTransDelete : public EmpTrans { public: void Apply(); }; When I compile and link this source I get the error, when I remove the virtaul function from the Apply function, everything works fine. What is the problem? Do I need to take out the other classes from the source? or to include them inside the ifdef? Thanks :)

    C / C++ / MFC help question career

  • Channels
    Y ytubis

    Hi! I get this line: Error 1 The type or namespace name 'Tcp' does not exist in the namespace 'System.Runtime.Remoting.Channels' (are you missing an assembly reference?) C:\Documents and Settings\Yossi_Tubis\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\Form1.cs 9 40 WindowsApplication1 what should i do?? Thanks :)

    C# visual-studio question

  • Channels
    Y ytubis

    Hi! I am trying to work with Channels. I implimented the 3.5 frameWork And the IDE does not know this pakcage: System.Runtime.Remoting.Channels.Tcp What am i doing wrong? Thanks :)

    C# visual-studio question

  • Decleration Problem
    Y ytubis

    Hi! I get this message: Error 1 Missing partial modifier on declaration of type 'VAControls.SchedulerXmlNode'; another partial declaration of this type exists C:\Documents and Settings\Yossi_Tubis\My Documents\Visual Studio 2005\Projects\VASchedular\VASchedular\SchedulerXmlNode.cs 8 11 VASchedular how can i know where this decleration exists so i will change it??

    C# help question csharp visual-studio

  • HashTable Problem
    Y ytubis

    Yes I did! it show that it is not null and that the count is 0; This is the code: if (m_eventhashtable.ContainsKey(taskarray[counter].SchedularAction)) { if (CheckIfTaskMultiTime(taskarray[counter].SchedularAction)) { //If i contain this Task but it is multiple, then add it to the list of event with number to process. m_eventhashtable.Add(taskarray[counter].SchedularAction + duptaskcounter.ToString(), taskarray[counter]); } else { //if i contain this Task but it is not multiple, then change replace this one for the old one. m_eventhashtable.Remove(taskarray[counter].SchedularAction); m_eventhashtable.Add(taskarray[counter].SchedularAction, taskarray[counter]); } } else { //If i do not contain this Task yet add it to the list of event to process. m_eventhashtable.Add(taskarray[counter].SchedularAction , taskarray[counter]); }

    C# help csharp visual-studio question

  • HashTable Problem
    Y ytubis

    Hi! I have and HashTable object in my class, i initialize it with new as the class creates. I am trying to use the ContainsKey in a function and i get this error: Object reference not set to an instance of an object. at VAControls.clsScheduler.TaskHandle(SchedulerTask[]& taskarray, Int32& counter) in C:\Documents and Settings\Yossi_Tubis\My Documents\Visual Studio 2005\Projects\VASchedular\VASchedular\clsScheduler.cs:line 350 at VAControls.clsScheduler.main_scheduler() in C:\Documents and Settings\Yossi_Tubis\My Documents\Visual Studio 2005\Projects\VASchedular\VASchedular\clsScheduler.cs:line 312 I initialize it, so i do not understand why i get this message. Do you know?? :) Thanks :)

    C# help csharp visual-studio question

  • Protection Problem
    Y ytubis

    Hi! I have base class and few children. I created in another class the and array of the base class to contain other children classes and when i try to create new one i get this: Error 1 'VAControls.SchedulerNowTask.SchedulerNowTask(System.Xml.XmlNode)' is inaccessible due to its protection level C:\Documents and Settings\Yossi_Tubis\My Documents\Visual Studio 2005\Projects\VASchedular\VASchedular\clsScheduler.cs 215 75 VASchedular all the children get the XMLNode Class, and run the base constructor. where is the protection level?? Thanks :) :)

    C# help csharp visual-studio data-structures xml

  • Even Handler problem
    Y ytubis

    Hi! I am trying to run a timer in my Form. The form has a function that is being called from the timer handler but i have a problem. this is the code: private static void TimerHandler(Object myObject, EventArgs myEventArgs) { starttime.Stop(); starttime.Enabled = false; Form1_Main(); } if i use the static on the Hnaler i get this error: Error 1 An object reference is required for the nonstatic field, method, or property 'Update_Installer.Form1.Form1_Main()' C:\Documents and Settings\Yossi_Tubis\My Documents\Visual Studio 2005\Projects\Update_Installer\Update_Installer\Update_Installer\Form1.cs 124 13 Update_Installer if i do not use it i get this: private void TimerHandler(Object myObject, EventArgs myEventArgs) { starttime.Stop(); starttime.Enabled = false; Form1_Main(); } Error: Error 1 An object reference is required for the nonstatic field, method, or property 'Update_Installer.Form1.TimerHandler(object, System.EventArgs)' C:\Documents and Settings\Yossi_Tubis\My Documents\Visual Studio 2005\Projects\Update_Installer\Update_Installer\Update_Installer\Form1.cs 112 31 Update_Installer The function is in the general Form. What to do? Thanks :)

    C# help csharp visual-studio question announcement

  • Referance Problem
    Y ytubis

    If i do not do it as static i am getting this error: Error 1 An object reference is required for the nonstatic field, method, or property 'Update_Installer.Form1.TimerHandler(object, System.EventArgs)' C:\Documents and Settings\Yossi_Tubis\My Documents\Visual Studio 2005\Projects\Update_Installer\Update_Installer\Update_Installer\Form1.cs 112 31 Update_Installer

    C# help csharp visual-studio question announcement
  • Login

  • Don't have an account? Register

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