|
This is a google question, you need to find articles on the algorithm you want to impliment. What does it do ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i need to make a methed send me arabic number even in string formate....this will be used as class library project...not windows..or web application,
the problem that always .Net deal with number in english formate
i am using C#2.0,have any one any suggstions?
|
|
|
|
|
Do you want to generate devanagri script numbers like: ०१२३४५६७८९
If Yes read on:
You can declare chars with the appropriate unicode and then do a ToString() to get the number in the desired format:
//Following will return the Devanagri Font '2'.
char HindiTwo = '\u0969';
HindiTwo.ToString();
The Unicode for the devanagri fonts 0 to 9 is '\u0967' to '\u096F'
|
|
|
|
|
thx alot,
that what i wanted ...and that was the only way to use unicode instead depend on the enviroment culture,but may be the only problem we cannot parse that unicode as number,
but anyway it will be appear as i want
|
|
|
|
|
I am making a custom host designer[^] and I am having a problem with my selection band updating. When I change the size of an item that is selected in my custom host designer fails to update the selection band. The control itself has a larger size but the selection band doesn't update to the larger size until I unselect the control and reselect it again.
Chris
|
|
|
|
|
hiii,
i want to import flash file to c#... how can i do it??
i wana play a flash file bfoe my form starts ..
how can i do it???
help me....
sushant kaura
|
|
|
|
|
To construct the events of menuitems i need a filename initialization. How do i do that? ... Thanks
|
|
|
|
|
What does a filename have to do with creating menuitems?? What do you mean by "filename initialization"??
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Uhh.. wanna restate your question? I have no idea what you're asking.
|
|
|
|
|
Well menu item events are separate. One does not need Filename initialization. BTW, what is filename initialization?
Keshav Kamat
India
|
|
|
|
|
hi Guys,
I am analysing the architecture for creating the following:
To load data from Visual Fox pro table into Sql table through C# Com+.
Steps I am after :
1. Create a method to read the data from Fox pro and convert it into an xml file.
2. Read the XML file and load into the table in Sql Server.
But I do not know which namespace to use to read data from Fox pro database and generate the xml file.
Can you guys please help???
Thanks
Sujit
happy coding!
|
|
|
|
|
In order to access FoxPro databases you have to use the OleDB data access classes. If you are familiar with the SQLClient namespace, all you need is to basically replace SQL with Ole in whenever you use anything like: SQLDBConnection --> OleDbConnection.
You do have to pay attention when you create the connection string for your database. The rest should be pretty straight forward if you have the odbc drivers installed properly for the fox pro database that you intend to use.
Good luck!
|
|
|
|
|
XML is not a very convenient intermediary data-format in this case.
You would find it simpler to use SQL-Server's SSIS (or DTS if you are using SQL-Server 2000). That would allow you to copy data from FoxPro directly into a SQL-Server table. Otherwise MS-Access linked-tables should be able to do the trick.
If you do need to copy the data programatically then use the .net ODBC or OLEDB classes to read FoxPro tables. You will then be able to link a DataReader object (from your FoxPro table) to an instance of the SqlBulkCopy[^] class to quickly copy data.
Regards
Andy
|
|
|
|
|
Hi all. I want make program that capture something from my microfone and save it as mp3 file, but I don't know where start. If somebody have tutorial about it, I'll try it.
|
|
|
|
|
|
Sure, I can, or API's, but I don't understand how. Can you post me steps (like set device, then set caps, set lights, and so on)
|
|
|
|
|
Sorry, I don't know directx good, I only adviced you to use it because it's powerful and can help you in that.
|
|
|
|
|
I am creating an Access driven program in C#.NET. I am trying to design it around the concept of multiple users. One function I'm trying to create is an automatic update for other users should one user add/edit/delete records. I have already created a file watcher that will watch for updates to a specified file when the database changes. The only problem is that I don't know WHAT has changed! Can anybody give me some suggestions on what to do?
may your code be error free
|
|
|
|
|
This is going to be nearly impossible to do in Access without a TON of extra work. It simply doesn't support, not provides any kind of mechanism to support, what you want to do. Access doesn't support triggers, so there is no way to know when an item has changed let alone what has changed in which table.
The only way around this is to implement a remoting wrapper component around your database. This means you'd have to move all of your database code that you want "watched" from the client to this remote component that does your "watched" database work for you. On every change, this component would have to raise an event with, or send a message to, every subscriber to the component to communicate change notifications to each client.
Or....
SQL Server, on the other hand, DOES support this, with Notification Services. You can find out more about it here[^].
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
Thanks Dave for the heads up.
may your code be error free
|
|
|
|
|
I have a property(See below) that should be working. This is in an example straight from my textbook. I have double and triple checked the coding after I typed it into the editor. I'm trying out the book example to see what the code looks like in the "real world".
The editor is telling me "Expected class, delegate, enum, interface, or struct". I am getting that message from the error list with the "string" underlined. As I am new at this, I (at this time) do not understand exactly what I'm being told or how to fix it. Any help in that direction will be apreciated.
public string Major<br />
{<br />
get<br />
{<br />
return major;<br />
}<br />
set<br />
{<br />
major = value;<br />
}<br />
}
|
|
|
|
|
Well, it is a possibility that you accidentily named an object string. Try changing it to String and see if it works.
Hope that helps.
Ben
|
|
|
|
|
Post the rest of your class definition. That would be very helpful in determining what is wrong.
Jon Sagara
This is the stuff we'll drink on special occasions. To paraphrase my father-in-law, this is the kind of wine that results in kids.
-- A friend
Blog | Site | Articles
|
|
|
|
|
I'm sorry if my question is stupid, but are you sure your property definition is inside a class?
Giving the class definition, with the irrelevant parts left out, might help.
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Thanks for your answers folks. I have found the solution (pardon the pun) to the problem. It seems that I had accidently typed in some code from the wrong page. Below I've listed my coding that works correctly. Thanks again.
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using PersonNameSpace;
<br />
namespace StudentNameSpace<br />
{<br />
public class Student : Person<br />
{<br />
private string major;<br />
private int studentId;<br />
<br />
<br />
public Student() : base()
{<br />
major = "unknown";<br />
studentId = 0;<br />
}<br />
public Student(string id, string fname, string lname, string maj, int sId)<br />
: base(id, lname, fname)
{<br />
major = maj;<br />
studentId = sId;<br />
}<br />
<br />
public int StudentId<br />
{<br />
get<br />
{<br />
return studentId;<br />
}<br />
}<br />
public string Major<br />
{<br />
get<br />
{<br />
return major;<br />
}<br />
set<br />
{<br />
major = value;<br />
}<br />
}<br />
public override int GetSleepAmt()<br />
{<br />
return 6;<br />
}<br />
public int CallOverriddenGetSleepAmt()<br />
{<br />
return base.GetSleepAmt();<br />
}<br />
}<br />
}
|
|
|
|