|
I have a problem with very long string value. How i can store it in variable and operate it? Thanks
Nothing
|
|
|
|
|
You can theoretically store billions of chars in a string, unless you have several gig of ram though performance will be an issue though. What do you mean by "operate it"?
|
|
|
|
|
Hi all,
Can I convert a string into code?
For egs. if I have textbox with the text:
"DataSet1.Tables[0].Rows[0][0].ToString()"
I want to convert it to code..
I must say that I want to use objects that the application creates, so the object ICodeCompiler cannot help me..
Is there a way of doing it...???
Thanks
RoyRose
|
|
|
|
|
What do you mean "I want to convert it to code"? If you want to dynamically create objects and methods in IL on the fly it is possible but far from a trivial task.
I would also suggest that allowing your application to blindly execute instructions from any data source is a best a bad design pattern and at worst a huge security risk.
|
|
|
|
|
unless he wants to include some sort of command interpreter in his application.
but that would be another subject.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hey Tom,
I'll tell you exactly what I mean.
I want to have a control (like label) that the Text property is a code that refers to table field plus other manipulation, for example
label.text = "Day(Orders.OrderDate)"
will get the name of the day the customer bought a product...
OR
label.text = "Age(table["customer"].Row["BirthDate"])"
Age is a function that gets a dateTime and returns the age...
It's very similar to script code.
I can manipulate only the current row.
I won't be able to change the DB just to show it.
I use other databinded labels, when I walk throught the rows, the label's data change & also the expression-labels suppose to change...
|
|
|
|
|
You know, I would almost recommend writing that kind of manipulation into the database itself instead of trying to pull it to the client to reinterpt. Or if you are doing more of a report kind of thing you might want to look into making the database return Xml so you can apply an Xslt. Or heck why not look into buying any number of the software advertised here to do this kind of thing.
|
|
|
|
|
Hi
Does anyone have any suggestions on the best way to convert a large C# solution to perform case insensitive string comparisons throughout?
Ideally, i would have hoped that this would be a compiler option.
Cheers
Rich
|
|
|
|
|
There's no compiler option that I can think of. You need to either create a string class ( can you even derive from 'string' ? ) or write your own comparison function, obviously in both cases, you need to change a lot of code by hand ( the string class would allow a global search and replace, at least ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
The string class contains a static method for doing case-insensitive matches. String.Compare( str1, str2, true );
How you'd apply that gloabally for your project, don't know. Maybe as been suggested, make your own class that replaces the ==.
--
Joel Lucsy
|
|
|
|
|
Thanks for the replies. Looks like a derived class is the way to go. It would be a really useful compiler option.
|
|
|
|
|
|
Hi There,
I have developed an Add in / bolt on architecture in our existing VB6 app that allows .Net objects to be loaded/hosted and I have been able to debug the .Net code by loading the .Net project, setting a break point on the code that will be called by the VB6 app, then attaching to the VB6 apps process using VS.net.
I have also done the same using C# as both the host and the add in.
In both of the above cases it involves opening the add in project and attaching to the main project's/applications process using VS.Net.
PS: You also need the PDB file to tie the source to the Exe/dll.
Hope this helps.
DL.
MCSD(VB6/SQL7)
MCAD(C#/SQL2000)
MCSD(C#/SQL2000)
|
|
|
|
|
Try adding the project for the plugin as a sub-project of your solution for the application that loads the plugin.
--
Joel Lucsy
|
|
|
|
|
Hi all,
I have written a basic proxy in C# to log and control Interent access on a LAN. the problem is that this doesnt work if i dont have a gateway address in the LAN card IP details. what i would like to do is have the proxy intercept the request on port 80 (or other ports) then it forwards the request to the gateway.
cause if i leave the gateway address in the NIC details then users can just remove the proxy from browser config and they still got access to Internet.
can anyone give me the right direction to acheive this please ?
kind regards,
g00fy
|
|
|
|
|
Can't you make your gateway inaccessible from the client computers? That way, they'd be forced to connect through your proxy.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
i really need more sleep before posting,
that is exactly what i want to do, i was looking for a way to redirect the packet using c# code, but i just realised that all i need is another socket to the router.
thanx for your reply
im going to sleep now
|
|
|
|
|
Im creating a client server app. One server and multiple clients. Every client is sending serialized messages to the server. Every message has to arrive (No UDP).
What to use. Chould I use TCPclient and send one message and close connection to server or should I use something like TcpChannel (Not sure what it is, or if it can send serialized objects). The time between messages vary from miliseconds to hours.
|
|
|
|
|
The best solution would be to use a TCPClient wrapped inside some sort of 'TCPManager' class that implements a timeout service. When you have to send a message the TCPManager class opens the connection and keeps it open for, say, 5 seconds before closind it again if there are no new messages to send.
|
|
|
|
|
Hi there,
using visual studio 2005 I am trying to build a webservice on a virtual server to access the COM object of virtual server 2005.
When I do it in a windows form, I have to disable the hosting process for getting the right HRESULT back, but how is this done in a webservice?
Is there something similar to disable the hosting process in a webservice?
http://msdn2.microsoft.com/en-us/library/ms185330.aspx
The above is what MSDN tells me to do when getting the error in a Windows App, and this works.
please help me out here.
regards
Christian
-- modified at 6:43 Wednesday 2nd November, 2005
|
|
|
|
|
Hello,
(I am using Visual Studio 2005 Beta 2), When the user adds/deletes a row from a DataGridView, is it automatically added/delete from the corresponding DataTable?
- A programmer's national anthem; "AAAAAHHHHH!!!!"
|
|
|
|
|
Hi, I have a crystal report that i'm trying to connect to a Access database, which is password protected. Without the password everything works, but when the database is password protected i can't add the database to the report, The error is:
"Logon failed.
Source: Microsoft Jet Databse Engine.
Description:The application couldn't start. The Informationsdata for the group are missing or are exclusiv opened by an other user".
Does anyone knows what I'm doing wrong?
Thank you!
|
|
|
|
|
im trying to write a simple app that will find the handle to a textbox of my choice so i can have it type in text for me (ie, im trying to make a app to enter a password at a login screen on my game). any ideas on how i can do this? im lost here on where to begin. Is it possible to find the textbox at a certain mouse cord?
Its been a while since i have done any programming, but its slowly coming back to me.
Thanks alot for your time everyone,
~jesse
The Code Project Is Your Friend...
|
|
|
|
|
Have you looked at Spy++? It does what you want and more.
I don't know if there are any managed APIs to do what you want. You might have to P/Invoke WindowFromPoint[^] instead.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
how to Generate billno without duplicate & without jumping number in multiuser env. if use autonumber feature of database posibility exist.
fdfff ff
|
|
|
|