|
Hy, i need some help because im pretty lost
ok, the thing is that i have to make a program that takes all dlls in a folder, read them and take those classes, methods and properties. Then it writes on a XML, f.e.:
-<global>
-<string>
<method/>
<property/>
-</string>
</global>
well, at start i thoght it was easy, but as i go further i find more problems.
My msn is sgermey@hotmail.com, im connected almost all day
Thanks all for read/answer/help/whatever
|
|
|
|
|
I have a problem in that MS SQL 2000 can't access a database I use (Sybase Adaptive Anywhere). However, Visual Studio can access it (well, the tables I have permissions granted to select). I need to extract the data from tables and put them into a new database and/or datawarehouse.
1. Is there an efficient way of duplicating a database in C#?
2. What's the best way of creating / populating an OLAP cube? I would like to use SQL Stored Procedures to copy data from the db into the OLAP cube with a schema. As this is not possible, do I import data into C#, use a table adapter to make new table designs and then put it into the OLAP cube? Would it be better to duplicate the database and then use SQL stored procedures?
Thanks for your help in advance.
|
|
|
|
|
I thought that enterprise manager could access data in most data sources.
You may want to look at data transformation services - create a local package, there are a load of database connection types (inc. odbc). You write all your scripts to transfer the data in the local package (you may need to read up on the it, but essentially you drag and drop tasks (eg there's an execute sql task), hook events together and the run in sequence based upon the previous events success or failure.
You can then schedule the package to run periodically (we run it overnight to populate our olap cube) using sql server agent.
Hope that helps (although it's not a c# solution).
ChrisB
|
|
|
|
|
Hi!
I have a textbox where I write my namn and click OK. Then a another form loads up.
Then my name should appear in a label. But I cant seem to reach my variable (name) from form1 to use it in form2.
Any suggestions?
Newbie untill I die!
|
|
|
|
|
Hy,
The easiest way to do what you need is to create a public static variable that contains the TextBox's text. I'll give you an example code. Suppose you have Form1 with TextBox1 and Form2 with Label2. When you click Button1 from Form1 you show Form2 with the text on the Label2.
public static string textBoxText = "";
private void Button1_Click(object sender, EventArgs e)
{
textBoxText = TextBox1.Text;
Form2 f = new Form2();
f.ShowDialog();
}
private void Form_Load(object sender, EventArgs e)
{
Label2.Text = Form1.textBoxText;
}
Hope it helps you.
Do your best to be the best
|
|
|
|
|
public static string textBoxText = "";
that one was missing, well it was not decleared where you had put it, thanks!
Newbie untill I die!
|
|
|
|
|
Why dont you make a seperate class file of the same namespace, then declare all your global variables in that class and then access those variables from any Form of your application...
i.e.
class myGlobalVars
{
public static string textBoxContent;
..........
..........
}
Now access these variables from any Form like this,
string getTExtBoxContent = myGlobalVars.textBoxContent;
|
|
|
|
|
Yes, I have thougth about that...but I only have one variable...so I think its a little to much work for only one.
Newbie untill I die!
|
|
|
|
|
still better than spending hours to find out more efficient ways. isn't it ? When I started learning C#, I used to use File.WriteAllText(), File.ReadAllText to communicate between forms and that was the easiest solution for me that time and my application survived without any problem.
Anyway, best of luck.
|
|
|
|
|
Hello!
I have a cross tab report (designed in Crystal Reports) that i export to disk in PDF format. The report is larger than one page. The first page of the pdf file is ok but on the second page the cross tab is printed but it is not filled with the data. I use the "mode" summary option for my summary fields. If i use the "count" summary option the report is printed normally and i have all the cells filled with data, but i need to work with the "mode" option. I don't understand what happens! What should i do?
Thank you!
Mihaela
|
|
|
|
|
Hello!
I am creating a cross tab report in Crystal Reports (the one that comes with the .NET 2003). I add at runtime the names of my columns and rows in two data tables in a data set. I want the columns and the rows to appear in my report in the order I introduced them in the data tables, but, somehow, the report has the columns and rows in alphabetical order. What should I do to have them in the initial order? (One more thing: In the DataSet they appear in the original order but in the report's database they are already in alfabetical order)
Thank you!
Mihaela
|
|
|
|
|
Hello!
I'm trying to draw an existing image onto a bitmap. The problem is that I need to scale the image and it is automatically smoothed, but I don't want it smoothed.
I use the DrawImage function of Graphics . Setting the SmoothingMode property of the Graphics object seems to have no effect.
Any idea how I can draw an image non-smoothed and scaled onto a bitmap?
Best regards
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
Have you tried following?
Graphics.InterpolationMode = Drawing2D.InterpolationMode.NearestNeighbor;
|
|
|
|
|
That works, thanks a lot!
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
You want InterpolationMode not SmoothingMode. NearestNeighbour will not do any smoothing.
|
|
|
|
|
That works, thanks a lot!
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
byte[] data = Encoding.ASCII.GetBytes("This is a test");<br />
sokje.SendTo(data, eindPunt);<br />
}<br />
This is the code i use for sending data to the server. This goes without an error (Though im not shure if its correct so comment is welcome).
<br />
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
sokje.Listen(5);<br />
sender = new IPEndPoint(Dns.Resolve(IPAddress.Any.ToString()).AddressList[0] , 11000);<br />
EndPoint senderRemote = (EndPoint)sender;<br />
<br />
int ontvangen;<br />
<br />
<br />
byte[] data = new Byte[256];<br />
ontvangen = Convert.ToInt16(sokje.Receive(data)); <br />
}<br />
This is the code i use to recieve messages. This gives me this error :
An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
With the following comment :
Socket is not connected and sender has not given an adress
The purpose of the program :
It doesn't really have a purpose yet. Im just expirimenting with c# a bit. For the future i plan on creating some gaming stuff (poker or so) freeware offcourse.
My question :
Can someone explain to me why this is not working and the way im supposed to make it? i started networking only 1 week a go so i would preffer a (relative) easy explanation.
Kind regards Jacco
|
|
|
|
|
Hi,
My first question is that if sokje is a Socket object. If it's so then you should bind it to one ipaddress and a port number. An easy way to do that is to write something like:
Socket serverSocket = new Socket(AddressFamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
serverSocket.Listen(5);
serverSocket.Bind(new IPEndPoint(Dns.Resolve("127.0.0.1").AddressList[0],PortNumber));
In the code you posted i don't see anywhere that you accept an incoming connection from a client. You can do that with this line of code:
Socket clientSocket = serverSocket.Accept();
Accept method is a blocking method so the program won't go further this line until a client is connected to the server. Only after you accept a client you can read what it sends.
Hope this helps.
Do your best to be the best
|
|
|
|
|
I guess this means its a prob on the server. Here is the server code.
private void Form1_Load(object sender, EventArgs e)
{
sokje = new Socket(AddressFamily.InterNetwork, SocketType.Stream
, ProtocolType.Tcp);
IPHostEntry ipHostInfo = Dns.Resolve(Dns.GetHostName());
IPAddress ipAddress = ipHostInfo.AddressList[0];
localEndPoint = new IPEndPoint(ipAddress, 11000);
sokje.Bind(localEndPoint);
sokje.Listen(5);
}
private void button1_Click(object sender, EventArgs e)
{
sender = new IPEndPoint(Dns.Resolve(IPAddress.Any.ToString()).AddressList[0] , 11000);
EndPoint senderRemote = (EndPoint)sender
clSocket = sokje.Accept();
int ontvangen;
//sokje.Bind(localEndPoint);
byte[] data = new Byte[256];
ontvangen = sokje.Receive(data);
}
I'm really sorry but i dont understand most of the explanation. Could u give a hint what to place where? Because i onestly dont know
Kind Regards,
Jacco
|
|
|
|
|
The underdog wrote: removed = sokje.Receive(data);
if you want to use this line to read from the client then it's wrong because sokje is the server. Use this instead
removed = clSocket.Receive(data);
Do your best to be the best
|
|
|
|
|
I ow u one Tnx a lot
|
|
|
|
|
Hi,
Having some trouble with the cursor position on datasets, so now i used bindingcontext and a currencymanager to update and insert records...
But it seems that the selected record in my datagridview isn't the same in the dataset after using sort on the grid...
When using the currency.position the update a row on the dataset, a different row has been updated. (probably not correct i guess)
Does anyone know how i can change programmatically values in my dataset in the same record as selected in my datagrid ?? the controls with binding are ok. But i need to set a datetime value when the record has been changed, and this is not entered by the user.
Thx
Kurt
|
|
|
|
|
Hi all,
I want to print a pdf file if the user clicks on a print button
I'm using this code...
string CardPath = "C:\Card";<br />
Process myProcess = new Process();<br />
myProcess.StartInfo.FileName = CardPath + "\\Card.pdf";<br />
myProcess.StartInfo.Verb = "Print";<br />
myProcess.StartInfo.CreateNoWindow = true;<br />
myProcess.Start();
I get an error saying just as it executes the myProcess.Start() part of my code...
"No application associated with the specified file for this operation"
How can i specify with what application to print??
Please help.
Thank you in advance....
-- modified at 9:20 Thursday 5th October, 2006
Oh yeah...
Would you by any chance know how to send this print to a specific printer?
i can send a .html or .doc to the printer but not the .pdf as stated above.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Hi! How do I save the contents of a list box, so that when the user shuts down the program, they click a button called save and the next time they open it, it is still there?
|
|
|
|
|
if ur using any database the u can store it in table at the time of closing application
or u can use Xml file to store ur content.
rahul
|
|
|
|