|
sonu
Jan 20, 9:26 am show options
Newsgroups: microsoft.public.dotnet.general
From: "sonu" <snehal_w...@yahoo.com> - Find messages by this author
Date: 19 Jan 2006 20:26:19 -0800
Local: Fri, Jan 20 2006 9:26 am
Subject: Re: HELP need urgently!!!
Reply | Reply to Author | Forward | Print | Individual Message | Show original | Remove | Report Abuse
What i m tring to do is ,I have a database with tables having paths of
the files on the client machine.Now what i want is on a button click
by the user search all the files on client machine corresponding to the path in the database table and the file path
should replaced by user files that have been searched from the client
machine.
|
|
|
|
|
I have a legacy MFC application which I am trying to port it to .net (using VS 2005).
I was wondering if its a good thing (or bad) to convert all my mfc resources to .net winform to have the look and feel of .net
Is there any downside to this?
Any comments on this?
Thanks
K
|
|
|
|
|
WinForms are too different from MFC to provide any automated tools. Any conversion will have to be a total rewrite.
|
|
|
|
|
check out www.dudelabs.com...
But I have no idea how much rewrite I have to do after converting my mfcs resources...Anyone have experience in using them???
-K
|
|
|
|
|
My sole experience with automated conversion "tools" turned into a total rewrite anyway.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I guess you'll have to try the trial version and investigate.
Kevin
|
|
|
|
|
Hello all
I am developing an application for smartphones in C#, using Microsoft Visual Studio 2003 and the .NET Compact Framework. I have also downloaded the OpenNET CF.
Is there any way of knowing which menu item is selected at any time? (like the event "Select", which it is not supported in the compact framework).
I am really lost, and I needed by yesterday
Many thanks in advance
|
|
|
|
|
I found this wounderful code to scan a image ie TwainGUI in code project.Can anybody tell me how to use TwainGUI in asp.net project.So that it can run on client machine.
|
|
|
|
|
You might want to drop your current project and take a look at something that already support TWAIN in an ASP.NET environment, like this[^] project on SourceForge.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i clicked on the link u gave but there is no file available on this project(TwainNet)
|
|
|
|
|
Teaches me for not checking the Download section myself.
Well, that's about the only FREE component. Everything else charges $,$$$.
You can find a nice list of them here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have to create this report that displays as follows
Product_ID Sale_Value Cumulative %_of_Totalsales Rating
---------- ---------- ---------- --------------- ------
1 100 100
2 250 350
--------- --------
ToTal: 350
So I want to know how to calculate the Cumulative inside Cristal reports in order to get the % --> PercentageOfSum(,)
All this time I was doing this in C# and inserting the results to the data set but this is very inefficient
Please Help --- IT Is Very Urgent
Mail to -- dnranatunga@yahoo.com
PLEASE HELP!!!!!
|
|
|
|
|
Anyone out there have any GOOD examples or web sites that show hoe to use these?
The Office Object model seems to.... oh I don't know...
SUCK! maybe...
All I want to do is put a border on the bottom of a cell and nothing seems to work...
UGH!
Breathe.. deep... must control fist of death.....
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
I am currently following a book on how to sign assemblies with strong names in order to register a serviced component in the into the COM+ catalog and some errors are occuring.
My AssemblyInfo.cs file currently looks like this: (of importance is the AssemblyKeyFile attriubte)
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.EnterpriseServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("StepByStep7_1")]
[assembly: AssemblyDescription("Retrieve and update data from the Northwind database")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("StepByStep7_1")]
[assembly: AssemblyCopyright("Copyright © 2006")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ApplicationActivation(ActivationOption.Library)]
[assembly: ApplicationName("NorthwindCS")]
[assembly: AssemblyKeyFile(@"..\..\..\70320.snk")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2d37557e-b619-4092-80e4-4a30e2978021")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
When I build the application I get the following error:
Use command line option '/keyfile' or appropriate project settings instead of 'AssemblyKeyFile'
Can anyone help explain why this error is coming up? The build itself actually does succeed, however it is giving me hassle when I come to register the serviced component in the COM+ catalog. I am presuming that it is because of the error in the build?
I would be very grateful to anyone who can help in order that I may move on in the book as I have just got a second wind to return to my studies and want to make the most of it while it lasts!!!
Thanks
Paul
|
|
|
|
|
Hi Paul,
The way of signing the assembly with key file is changed.
comment out the line "[assembly: AssemblyKeyFile(@"..\..\..\70320.snk")]"
Right click the project and open the properties.
Click on the Signing tab.
Click the "Sign the assembly" - choose the key file over here and save the project
Compile it.
It should solve ur problem.
With Regards,
Shailesh kawade
Knowledge Is Power.
|
|
|
|
|
Many thanks for your help, worked a treat! If I could ask one more favour, as I am struggling with this at the moment!
I am now trying to register my DLL in the COM+ Catalog. To do this I am taking the manual approach and using the regsvcs.exe tool provided with the .net framwork.
However when I regiser the dll it comes back that I have derived classes found in the assembly and won't register, saying that classes must be public, concrete and have a default constructor. Why is this happening? As far as I'm aware I haven't got any derived classes apart from the serviced component which is required. Below is my code for my class:
using System;
using System.Data;
using System.Data.SqlClient;
using System.EnterpriseServices;
namespace StepByStep7_1
{
public class NorthwindSC : ServicedComponent
{
private SqlConnection sqlcnn;
private SqlDataAdapter sqlda;
private DataSet ds;
public NorthwindSC()
{
// Create a connection to the
// Northwind SQL Server database
sqlcnn = new SqlConnection("data source=(local);initial catalog=Northwind;
User ID = SA;Password = *********");
}
// This method executes a SELECT query and
// returns the results in a DataSet object
public DataSet ExecuteQuery(string strQuery)
{
// Create a SqlDataAdapter object to talk to the database
sqlda = new SqlDataAdapter(strQuery, sqlcnn);
// Create a DataSet object to hold the results
ds = new DataSet();
// Fill the DataSet object
sqlda.Fill(ds, "Results");
return ds;
}
// This method updates the database with the changes in a DataSet object
public int UpdateData(DataSet ds)
{
// Update the database and return the result
SqlCommandBuilder sqlcb = new SqlCommandBuilder(sqlda);
return sqlda.Update(ds.Tables["Results"]);
}
}
}
Many thanks for your help
Paul
|
|
|
|
|
Hi All,
Can anybody please help me to know where exactly is gacutil tool in Framework 2.0
Is the tool name changed ? Or the concept of assembly version maintenance is changed.
What is backword compatibilty with Framwork 1.1?
(Note :- I am using released version of Framework 2.0)
Thanks In Advance
Shailesh Kawade
Knowledge Is Power
|
|
|
|
|
Hi,
The gacutil is actually only shipped with the .NET Framework SDK and not with the redistributable package.
Hope that helps
Paul
|
|
|
|
|
Is anyone here aware of any in-memory DB engines that can be used to run simple queries against? I am looking for something that could read in an XML serialized dataset bu then let me run SQL style queries against it. I have been playing around with using DataViews on a DataSet but that does not seem to be as in depth as I would like. I am interested in in doing some grouping and sorting functions so I can run reports against the data I get back.
I could import this data into a local DB like MSDE or maybe even Access (ech) if I really had to but I would love to avoid that if I could.
Otherwise I am kind of stuck writing this query and reporting code myself.
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Sorry to take so long to see your message, but investile sqlite as it'll have the features you're most likely to want. There should be a number of wrappers for .NET out there.
|
|
|
|
|
I have some code that is written in C# that I'd like to somehow integrate into one of our Win32 API C/C++ applications. Is it possible to call the C# code in any way...through a DLL, or something?
We'd rather not have the API code app spawn a process that has the C# app, which is the only solution we can think up.
Thanks,
|
|
|
|
|
You could put a COM wrapper around your .NET class and then open it in your Win32 API app using COM. I have done this before and it works pretty well.
Steve Maier, MCSD MCAD
|
|
|
|
|
Does anyone know where I can get information how to to get a list of NT users for a specified domain?
Bob Zagars
|
|
|
|
|
Is there an easy way to clear my recent projects list? I found http://www.codeproject.com/csharp/VSRecentcleaner.asp[^], but that works for VS2003, and doesn't work for 2005. Have they implimented a menu solution, or is there a new registry directory to remove from?
Any advice?
|
|
|
|
|
I wanted to download the address book from the yahoo,hotmail,gmail,rediffmail,indiatimes.com etc.... like this application eg:
http://www.addressbookimport.com
Can somebody help me to code in for the same.
Thanks
Chawla
Chawla
|
|
|
|