Hi, I am having the follwoing CString "0000122334" and I need to remove the starting zeros from the string. Kindly help. Thanks in Advance.
deadlyabbas
Posts
-
How to remove the "0" from the starting i.e. from the left of the CString -
How to remove the "0" from the starting i.e. from the left of the CStringHi, I am having the follwoing CString "0000122334" and I need to remove the starting zeros from the string. Kindly help. Thanks in Advance.
-
Binary to hex Conversion ?Thanks .....!!!!!!!
-
Binary to hex Conversion ?Thanks for your reply. If you just convert it as you have shown it Eliminates the "0". Say for example you have to convert 0000111111111000 into Hex.So it will show FF8 instead 0FF8 Well I was able to over come that by doing following:
string MyBinary = "0000111111111000";
string MyHex = String.Format("{0:X4}", Convert.ToInt32(MyBinary, 2)); -
Binary to hex Conversion ?Ho to convert binary to hex in C#. I have a byte array and I want to convert it into hex.
-
How to call C# function from unmanaged C++ code.?Hi, I need to call a function written in C# from the unmanaged code. The code from where I have to call the function is purely written in VC++ and it come in the unmaged part of the solution code. Most of the solution is written in C# .NET 3.5. Please help me out. Thanks In Advance Abbas
-
How to call C# function from unmanaged C++ code.?Hi, I need to call a function written in C# from the unmanaged code. The code from where I have to call the function is purely written in VC++ and it come in the unmaged part of the solution code. Most of the solution is written in C# .NET 3.5. Please help me out. Thanks In Advance Abbas
-
error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall ...................Hi, I am getting the following error when I am building my project in Visual Studio 2005. Error 134 error C2440: 'static_cast' : cannot convert from 'LRESULT (__thiscall CCancelUIThread::* )(WPARAM,LPARAM)' to 'LRESULT (__thiscall CWnd::* )(WPARAM,LPARAM)' d:\CBSTellerLatest\IDManager\CancelThread.cpp 138 I am not getting any error when I runm the same code on Visual Studio 6.0 The Code is as Follows Code in .H file
// Generated message map functions //{{AFX\_MSG(CCancelUIThread) afx\_msg LRESULT OnStepProgress(WPARAM wParam, LPARAM lParam); afx\_msg LRESULT OnSetText(WPARAM wParam, LPARAM lParam); //}}AFX\_MSG
Code in .CPP file
BEGIN_MESSAGE_MAP(CCancelUIThread, CWinThread)
//{{AFX_MSG_MAP(CCancelUIThread)
ON_MESSAGE(CM_PROGRESS_STEPIT, OnStepProgress)
ON_MESSAGE(CM_PROGRESS_SETTEXT, OnSetText)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()And the function definations. Please help me out. Thanks In Advance
-
Ho to get the IP address of Network Printer.Hi, Can please anyone tell me that How to get the IP Address of the network printer through the codeing in .NET using C#. Thanks
-
Error : The "CodeAnalysis" task failed unexpectedly.Plz someone reply for my query :(
-
Error : The "CodeAnalysis" task failed unexpectedly.Hi All, I am getting the following error while building the solution on MS Visual Studio 2005. Error 1 The "CodeAnalysis" task failed unexpectedly. System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Build.Tasks.CodeAnalysis.GenerateFullPathToTool() at Microsoft.Build.Tasks.CodeAnalysis.Execute() at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound) TellerConfiguration Thanks, Kindly Help Me Out
-
How to delete duplicate nodes from XML throgh C#?Hi, I want to delete the duplicate and some hard coded XML node in XMLDocument throgh C#. What is the method to do the same? I am new to the use of XML in C#. Please help me out.....!!!!!!!!!!! Thanks
-
How to delete duplicate nodes from XML throgh C#Hi, I want to delete the duplicate and some hard coded XML node in XMLDocument throgh C#. What is the method to do the same? I am new to the use of XML in C#. Please help me out.....!!!!!!!!!!! Thanks
-
Getting Error while opening .NET project in Visual Studio 2005Hi, I am getting an error while opning the project in visual studio 2005.The project is created in Visual Studio 2008. I don't have Visual Studio 2008 right now.Please let me know that is there any Service Pack or any other way to do it. Following is the error: "This project cannot be opened form source control because it was created by a version of Microsoft Visual Studio that is incomplete with this one. If this is the case, you may be able to open it from source control using that version of Microsoft Visual Studio, and then use Microsoft Visual Studio to open the local copy." Thanks, Abbas
-
What is COM Interop in C#?Hi, I am new to C#. I want to know what is COM Interop in C#.
-
How to implement edit box and spin controlI want to set it through properties.I have done with all the other part by the help of Rajeesh. Can u please tell me how to set the range
-
How to implement edit box and spin controlThanks, I did the same. Now please tell me how set the range
-
How to implement edit box and spin controlI made the tab order as u said.One more question can we give the range say for example 0 - 40 in the edit box which can be incremented or decremented by the spin control (by clicking upward and downward arrow).If yes then where to put it. Thanks
-
How to implement edit box and spin controlI have made the Auto Buddy property of spin control as true and also set the Set Buddy Integer as true. I didn't get "in z-order" Is there any changes to be done in the properties of edit box
-
How to implement edit box and spin controlThanks Adam for your reply Regarding properties I want to is that "Can we do it by setting the property or we have to do it by programming."