|
I've got a large class in c++. I couldn't convert to C#.Because i don't know a lot of construction and contents in this class. I want to import this class to c# app. Can my problem solve in C#. How do I import c++ class to C#.
I hope I can communicate my problem more rihgt.
thanks
|
|
|
|
|
You have two choices, either put it in a dll, and import the functions like you would with any other dll, or make a managed c++ wrapper around your class that converts the managed types to unmanaged, and vice versa.
|
|
|
|
|
I am getting this error...
Unable to cast object of type 'System.Web.UI.WebControls.LinkButton' to type 'System.Web.UI.WebControls.Button'
how i solve this problem..
Thanks.
|
|
|
|
|
Why are you trying to do that?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
i am getting error in this foreach loop...
ButtonList contains List of Buttons and LinkButtons.
foreach (Button str in ButtonList)
{
}
|
|
|
|
|
I just took a sleeping pill and can't think clearly, but this could work.
foreach(Control ctrl in ButtonList)
{
if(ctrl is Button)
{
Button myButton = (Button)ctrl;
//Do work
}
else if(ctrl is LinkButton)
{
LinkButton myLinkButton = (LinkButton)ctrl;
//Do work
}
}
Ask others first since I am way over due for sleep, and good night. That 'should' work though.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
LinkButton, Button and ImageButton dont have a shared base class, but they do have an interface which they all implement called IButtonControl . So this will work for you (asuming that IButtonControl has the property/method you are trying to use)
foreach(IButtonControl btn in ButtonList
{
...
}
|
|
|
|
|
hai sir/mam
how to merge two individual picture into a single picture box
and back image is remain constant but the fore imageis transparent and to visible two picture givean example code also
ok bye sir/mam
|
|
|
|
|
This forum is not the place to just get code handed to you. You must try, think, fail, then come and ask for help. Post what you have so far, and we will be glad to help you get past an error or two.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
As others said, you have to write your own code. As a pointer, a picturebox is not a magic image processing library. It's a tool for people who are too inexperienced to know how to paint an image onto a form ( although that's not too hard ). You'll have to write code for all of this, and the picture box will just get in the way.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
OMG! How did you even figure out what he wanted?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi all,
how we can read/write data from powerpoint presentation using c# .net.
plz replay if any method for this query..
Thank you.
|
|
|
|
|
Hmm, quick search on Google resulted in this as a result, the first one to be exact.
http://www.codeproject.com/KB/cs/Power_Point_Automation_C_.aspx[^]
And it is right here on CP! Even better, the conclusion says the exact words 'reading and writing', worth a look at.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
Hi,
i am in need of a solution for the problem which i could not proceed further,
i am using windows datagrid(VS 2003)in C# and i need to edit some cells of alternate rows in windows data grid like
b5,b6,b7 and b8
- -
h5,h6,h7 and h8
here b and h stands for row and nos stand for columns
i am not familiar with windows data grid so it would be great if someone suggests me a way thru some sample code.
Thank you
Thanks
Mukkanti
|
|
|
|
|
I have no idea what you are asking.
mukkanti007 wrote: here b and h stands for row and nos stand for columns
WHAT? I don't even see nos anywhere...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Oh! nos = numbers
How about you reask the question, in better english, and no text speak?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
to better understand the problem,
I have a windows data grid with some data filled up.
now i want to edit only some cells (B5,B6,B7,B8) of 1st,3rd,5th row only in that datagrid,
B5- 5th cell of Row
B6- 6th cell of Row
.
.
.
i need sample code for this.
Hope this is clear now.
Thanks
Mukkanti
|
|
|
|
|
hai i have a vc6 dll to be used for my project. the problem is whenever i want to call some function which takes the parameter VARIANT* from vc6 application asks for a ref object parameters and I cannot retrieve the value needed.
So I used the interop marshalling techniques for this but still i have problems with that can anybody help me how to approach this problem
|
|
|
|
|
Hi people!!!
I had to develop an application that has to work as standalone and also as "add on" of some ERP systems. One of the things done in my program is to have an object serialized to an XML File.
It works 90% of the time... but under ONE of the ERP Systems (SAP) I get a System.InvalidOperationException: "There was an error generating the XML document", InnerException is "Could not load file or assembly 'Swissdec..."
What is driven me crazy is that this exception is generated inside that assembly...
Does somebody have an idea???
here is the stack:
Title: System.InvalidOperationException
Date/Time: 19.12.2008 08:53:43
Message: There was an error generating the XML document.
StackTrace:
at SCS.Swissdec.XmlGenerator.GenerateXmlFileAsDeclareSalary(String pPathToGenerate)
at SCS.Swissdec.SwissdecLogic.Send(DateTime pFromDate, DateTime pToDate, String pSubstituteRequestId)
at SCS.SalaryGUI.Tools.SwissdecControl.btnSend_Click(Object sender, EventArgs e)
******************************
Message: Could not load file or assembly 'Swissdec, Version=10.10.108.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
StackTrace: at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterDeclareSalary.Write81_DeclareSalary(Object o)
******************************
Message: String cannot have zero length.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at SCS.Salary_B1AddOn.currentDomain_AssemblyResolve(Object sender, ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(String assemblyFullName)
******************************
Life is not short... the problem is only how you organize yourself
|
|
|
|
|
Happy new year to everybody!
I did some researches and what I understand is that my app does not generates correctly the "MyProject.XmlSerializers.dll" ... Or else it uses another xmlserializer instead of this one.
As said above my app is an Addon and is called from an outside application. This may confuse .NET and I found out that using the GAC may resolve the problem.... But I don't wanna do that. Any other suggestion would be appreciate!!!
Life is not short... the problem is only how you organize yourself
|
|
|
|
|
Hi,
When i try to connect a client with a listening server, no connection is established. In the client, i get the LocatEndPoint as 0.0.0.0 : "port number".
It is ok in some particular system.
Here is the code for server listening :-
strHostName = Dns.GetHostName();
IPHostEntry ipEntry = Dns.GetHostByName( strHostName );
aryLocalAddr = ipEntry.AddressList;
Socket listener = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp );
listener.Bind( new IPEndPoint( aryLocalAddr[0], 399 ) );
IPAddress.Loopback, 399 ) );
listener.Blocking = true;
listener.Listen(-1);
listener.BeginAccept( new AsyncCallback( app.OnConnectRequest ), listener );
Code for client :-
m_sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint epServer = new IPEndPoint(IPAddress.Parse(IPaddress), 399);
m_sock.Blocking = true;
onconnect = new AsyncCallback(OnConnect);
m_sock.BeginConnect(epServer, onconnect, m_sock);
Regards,
Yesuprakash
|
|
|
|
|
|
Hi there
Can someone guide me how to do Dos printing, with paper eject and margin set.
I am having a C# application with SQL 2000 i have data loaded into developer express grid. when the user selects print. it must go for dos based printing.
Right now i am writing it to a text file then tried printing i am facing alignment problem like if a line has 130 letters everything goes to a mess.
here is what i have to print
-----------------------------------------------
Company Name
Address Line1
Address Line2
-----------------------------------------------
Bill No :- 12345 Bill Date:- DD/MM/YYYY
-----------------------------------------------
Customer Name :- John Travolta
-----------------------------------------------
-----------------------------------------------
Waiting for a reply
Thanks
|
|
|
|
|