|
thank u for replying ..
i have searched on google b4 also as i dint find the solution i posted this question .......i want to know how to deploy a dll in the clients system and regestering it to GAC .....?
i know deploying
this thing is working fine wid the publishing but not wid the setup and deployment
regards
sindhu tiwari
its me sid
|
|
|
|
|
Actually, there are two deployment options in VS. You can create either ClickOnce setup or normal setup... If you are using ClickOnce, you won't be able to registry the dlls to client's GAC..As you were saying about publishing things, I think you are using Clickonce that isn't possible to install dll to GAC..
|
|
|
|
|
|
Ummm,, with code behind when you add data to the datagridview. Can't really give an example since we have no idea what your database structure looks like.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I am looking for an help in the best way to accomplish a sync between two dataset of the same type. Meaning I have a LOCAL and REMOTE version of the database and I'm needing to sync them nightly. I have a web service that will accept a dataset and update the REMOTE version but because of a large amount of data I have a LOCAL copy that represents the REMOTE version.
I first parse in data from flat files into a RAW virsion and need to sync data between the RAW and LOCAL versions, ( RAW will trump the LOCAL).
I then use a web service to pass ONLY the changed data to the REMOTE version of the database.
Overall I'm looking of and easy, processor and memory friendly way to sync this data. Any and all ideas on the topic would be helpful.
I'm listening but I only speak GEEK.
|
|
|
|
|
foreach ( dsLogPro.CompaniesRow row_Raw in ds_Raw.Companies.Rows )
{
dsLogPro.CompaniesRow found_Local = ds_Local.Companies.FindByCompanyCode( row_Raw.CompanyCode );
if ( found_Local != null )
{
if ( !found_Local.Equals( row_Raw ) )
{ // raw will trump local
foreach ( DataColumn col in ds_Local.Companies.Columns )
{
found_Local[ col ] = row_Raw[ col ]; // update local with raw
}
}
}
else
{ // this must be a new row
found_Local = ds_Local.Companies.NewCompaniesRow();
foreach ( DataColumn col in ds_Local.Companies.Columns )
{
found_Local[ col ] = row_Raw[ col ]; // update local with raw
}
ds_Local.Companies.Rows.Add( found_Local );
}
}
This is the direction I'm currently moving towards. I don't believe the tables will change but the columns might change in the future so I'm really trying to keep this flexable.
I'm listening but I only speak GEEK.
|
|
|
|
|
private void CompaniesCompare()
{
rowsAdded = 0;
rowsDeleted = 0;
rowsUpdated = 0;
start = DateTime.Now;
// This will update and add the rows
m_parentProcess.OnPostMessageEventHandler( this, new MigrationEventArgs( "\tcomparing company data." ) );
foreach ( dsLogPro.CompaniesRow row_Raw in ds_Raw.Companies.Rows )
{
dsLogPro.CompaniesRow found_Local = ds_Local.Companies.FindByCompanyCode( row_Raw.CompanyCode );
if ( found_Local != null )
{
if ( !found_Local.Equals( row_Raw ) )
{ // raw will trump local
foreach ( DataColumn col in ds_Local.Companies.Columns )
{
found_Local[ col ] = row_Raw[ col ]; // update local with raw
}
rowsUpdated++;
}
}
else
{ // this must be a new row
found_Local = ds_Local.Companies.NewCompaniesRow();
foreach ( DataColumn col in ds_Local.Companies.Columns )
{
found_Local[ col ] = row_Raw[ col ]; // update local with raw
}
ds_Local.Companies.Rows.Add( found_Local );
rowsAdded++;
}
UpdateProgressBar();
}
// This will remove un-needed rows
foreach ( dsLogPro.CompaniesRow row_Local in ds_Local.Companies.Rows )
{
dsLogPro_Live.CompaniesRow found_Raw = ds_Raw.Companies.FindByCompanyCode( row_Local.CompanyCode );
if ( found_Raw == null )
{ // was not present in the raw so remove it.
ds_Local.Companies.Rows.Remove( row_Local );
rowsDeleted++;
}
UpdateProgressBar();
}
}
This is what I have ended up with and would like someone elses opinion on the code.
I'm listening but I only speak GEEK.
|
|
|
|
|
I'm trying to fill in a text box then hit the submit button using httpwebrequest.
Here is a sample using googles home page. I just cant seem to get it to work. Thanks for the help.
string Uri = "http://www.google.com";
string requestString = "q=test&btnG=Clicked";
byte[] requestData = Encoding.UTF8.GetBytes(requestString);
HttpWebRequest request = null;
Stream stream = null;
HttpWebResponse response = null;
// set up request
CookieContainer _cookies = new CookieContainer();
request = (HttpWebRequest)WebRequest.Create(Uri);
request.Proxy = null;
request.CookieContainer = _cookies;
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = requestData.Length;
// make form post
stream = request.GetRequestStream();
stream.Write(requestData, 0, requestData.Length);
// get response
response = (HttpWebResponse)request.GetResponse();
|
|
|
|
|
You may find this[^] article useful.
/ravi
|
|
|
|
|
See Here. It shows how you can fire button click event.
Be Good Have Good
|
|
|
|
|
I just want to join a couple of short wmv-files captured from a webcam.
I've googled for a while and I'm no wiser.
The only lead I found is wmvappend from windows media sdk samples, but it's VC++ and couldent even get it to build.
Any pointers?
|
|
|
|
|
Hello,
I would suggest you to please browse to the following link which gives more information on the same:
http://www.codeproject.com/KB/graphics/ConvertVideoFileFormats.aspx?print=true
Best Regards,
Sam Xavier
www.componentone.com
|
|
|
|
|
Thanks.
I'll take a look at it.
|
|
|
|
|
Hey ya'll,
I want to retrieve an image from a web page using the clipboard.
The question: I am trying to use the MemoryStream returned by GetData("DeviceIndependentBitmap") and create a bitmap for viewing from this.
I've googled and can't find squat so am asking the pros...I'm currently trying to do it this way;
MemoryStream stream = (MemoryStream)data.GetData("DeviceIndependentBitmap");
Bitmap bmp = new Bitmap(stream);
and I get the following exception: "Parameter is not valid"
Thanks,
Mike
Life is not measured by the number of breaths we take, but by the
moments that take our breath away. "George Carlin"
|
|
|
|
|
Hi,
I got a code where I move the mouse around the screen... Everytime the mouse moves a pixel, i have an action.
In that action, i want to find the color of the pixel there are in the screen position: 395,247...
Just need the color in HEX (#xxxxxx) or RGB (xxx,xxx,xxx).
Can anyone make an example for me to do that?
Thanks.
|
|
|
|
|
|
Thanks works perfect..
|
|
|
|
|
You're welcome
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
|
|
|
|
|
Hi.
I'm writing an application that it use a SQL table for store and read data.
Sometime, I need to list all the registers between two dates, (there is a field of type datetime in the table).
So, I have to objects of type DateTime, ie, d1 and d2. Can anyone help me with the query string to list the registers between these two dates??.
Table name: Table1
Field datetime: birth
Query: "Select * from Table1 where birth > " + d1.toString() + " And birth <= " + d2.toString(); // It doesn't work.
I also tried with "#" characters between DateTime objects, but it doesn't work anyway.
Thanks.
Demian.
"I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my telephone."
-Bjarne Stroustrup, computer science professor, designer of C++
programming language (1950- )
|
|
|
|
|
You should not use string concatenation since it opens you up to sql injection attacks. Use parameterized queries instead.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: You should not use string concatenation since it opens you up to sql injection attacks.
Hi there Paul,
Please explain your statement.
Thanks in advance.
Danny
|
|
|
|
|
|
Thanks man.
Good info.
Danny
|
|
|
|
|
I'm not sure if this will work - give it a go anwyay:
<br />
"Select * from Table1 where birth > cast(""" + d1.toString() + """as datetime) And birth <= cast(""" + d2.toString()+""" as datetime)"<br />
Regards
Guy
You always pass failure on the way to success.
|
|
|
|
|
Hy there,I hava a problem..I created a control that has a public Brush property that the developer chooses from the property window. But If i change it..it doesn't get serialized to InitializeComponent() so at runtime it still has the default value
I created a UIEditor for this property and a BrushConverter : TypeConverter to let the design-time know how to convert from a InstanceDescriptor to a Brush.
Why doesn't this work? I debugged the design-time and when I change the property..the breakpoint in the method ConvertTo from the type converter doesn't hit
Thank you in advance.
|
|
|
|