|
|
|
Seems like it's not possible to debug a DLL attached to the compiled application in Visual Studio Express
http://msdn2.microsoft.com/en-us/library/c6wf8e4z.aspx
|
|
|
|
|
Hello all happy programmers out there.
Iam currently working on a new Windows Mobile 5.0 Pocket Pc project.
Using SQL mobile database and the compaqt framwork 2.0
This will work as a customer database. Writing and reading works fine frome the database now. But i would like to transfer the data from the database to an excel document and if possible also from exel document to the database.
Any help is highly welcome.
Have a nice day !
|
|
|
|
|
You have to supply all the files in the project in the same command line. You can't compile each file seperately and expect it to work.
Beyond that, we'll need to see the command line your giving and the error that's generated.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
The question is quite simple (but I could not find the best answer myself): What is the best C# way to transfer a file from a Desktop application (Windows Application) to a Server for persistance?
Persisting information about a windows form is ok, but how about persisting it somewhere else on the web?
Regards,
Vini
|
|
|
|
|
Marcos Accioly wrote: What is the best C# way to transfer a file from a Desktop application (Windows Application) to a Server for persistance?
File.Copy ???
Or do you mean positng the file via a WebService? The title of this post doesn't seem to fit the contents.
only two letters away from being an asset
|
|
|
|
|
Sorry Mark for being confusing.
All I wanna do is to copy, from my windows app, a bunch of configuration in an xml file to a remote server. Doesn't need necessarily be via web services.
Does File.Copy accept and ftp address or something similar?
Cheers!
Vini
|
|
|
|
|
It will accept UNC paths. 2.0 has the WebRequestMethods.Ftp class
only two letters away from being an asset
|
|
|
|
|
I am attempting to write a function with the following declaration:
void OpenExcel(string filename, out Excel.ApplicationClass XLApp, out Excel.Workbook XLWorkBook, out Excel.Sheets XLSheets, out Excel.Worksheet XLWorkSheet)
where the function will open an instance of excel and the workbook with the given filename, and assign the application instance, the workbook, the worksheets collection and the default worksheet to the variables passed in respectively
When I attempt to compile I receive the following errors:
Argument '2': cannot convert from 'Microsoft.Office.Interop.Excel.Application' to 'out Microsoft.Office.Interop.Excel.ApplicationClass'
Argument '3': cannot convert from 'Microsoft.Office.Interop.Excel.Workbook' to 'out Microsoft.Office.Interop.Excel.Workbook'
Argument '4': cannot convert from 'Microsoft.Office.Interop.Excel.Sheets' to 'out Microsoft.Office.Interop.Excel.Worksheets'
Argument '5': cannot convert from 'Microsoft.Office.Interop.Excel.Worksheet' to 'out Microsoft.Office.Interop.Excel.Worksheet'
This also fails when I replace "out" with "ref"
Anyone know how to fix this?
|
|
|
|
|
Aren't you missing the "out" modifier in the calling function?
[]'s
Vini
|
|
|
|
|
Whoops, I'm amazed that I missed that
|
|
|
|
|
i am now working in a web developing project and bind the web page with sql server.
my question is: I want to handle the tricks that may cause any crash in sql when a user type "slash" or anything like this or any equation make the sql accept what he wrote
thanks in advance.
haitham
|
|
|
|
|
|
Is it possible to display a RTF file in my RichTextBox control?
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
nevermind. just found it
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
You are mastering the art of finding the answers for your own questions! =)
Good job!
Vini
|
|
|
|
|
Hi All,
I've recently tackled a project that involves a little bit of DirectX in managed code (c# with the June 06 DirectX SDK). I'm wondering if anyone has any recommendations for a good DirectX book? Something that focuses on managed DirectX, for someone who is comfortable programming in c# (a lot of the DirectX related stuff is sort of geared to people with very little development background). Just wondering if anyone here has run across a good reference that they would recommend.
Thanks,
Aaron
|
|
|
|
|
I want to put a copyright symbol inside a label
I tried alt+ctrl+C, but it didnt output anything. Any ideas?
Nick
--------------------------------------------------------
1 line of code equals many bugs. So don't write any!!
My mad coder blog
|
|
|
|
|
Two approaches:
1) Go to Character Map, find ©. Copy and paste it to your control
2) Find the ASCII code (or Unicode) for © (ASCII code is 169 in my RedHat Linux). Directly use the code in your application.
Best,
Jun
|
|
|
|
|
|
Hi guys;
I have a configuration form with tab controls where I have next and back buttons and I would like to disable the tab buttons, is there any way I can show the tab buttons but not allow the user to click on them and instead have them use the back and next buttons?
Please help!!!
sasa
|
|
|
|
|
i'm not sure if u can do it.
maybe u could use the user controls and with the buttons next/back u could show/hide them.
enrico
VentoEngine corp.
Program your life ^^
|
|
|
|
|
I've created a login dialog box to an application, which works fine, but now the customer wants to change to using a system login to the application to track who's on without needing to create separate login's in the app for each person. Also, the person running the app may or may not be the same person that logged into the computer (most likely not).
I've been digging around, and found some promising things - but nothing that quite matched up completely. The NetworkCredential class seemed the most promising, but I'm not going to be accessing any resource, I only need to see if it's a valid login, so I couldn't see how I could use this. The WindowsIdentity class also seemed promising, but I didn't see how that could be used for my purposes either.
Any ideas?
-----
In the land of the blind, the one eyed man is king.
|
|
|
|
|
<br />
[DllImport("advapi32.dll", SetLastError = true)]<br />
public static extern bool LogonUser(String lpszUsername, <br />
String lpszDomain, String lpszPassword,<br />
int dwLogonType, int dwLogonProvider, ref IntPtr phToken);<br />
<br />
[DllImport("kernel32.dll", CharSet = CharSet.Auto)]<br />
public extern static bool CloseHandle(IntPtr handle);<br />
<br />
private bool LogonUser()<br />
{<br />
IntPtr tokenHandle = new IntPtr(0);<br />
const int LOGON32_PROVIDER_DEFAULT = 0;<br />
const int LOGON32_LOGON_INTERACTIVE = 3;<br />
<br />
tokenHandle = IntPtr.Zero;<br />
string DomainName = ConfigurationManager.AppSettings["Domain"];<br />
<br />
try<br />
{<br />
if(LogonUser(txtName.Text, DomainName, txtPwd.Text,<br />
LOGON32_LOGON_INTERACTIVE, LOGON32_PROVIDER_DEFAULT,<br />
ref tokenHandle))<br />
{<br />
WindowsIdentity WinIdentity = new WindowsIdentity(tokenHandle);<br />
System.Threading.Thread.CurrentPrincipal =<br />
new WindowsPrincipal(WinIdentity);<br />
<br />
return true;<br />
}<br />
else<br />
{<br />
return false;<br />
}<br />
}<br />
catch(SystemException)<br />
{<br />
MessageBox.Show("Domain could not be found. Check network connection.");<br />
DialogResult = DialogResult.Abort;<br />
}<br />
catch(Exception ex)<br />
{<br />
ExceptionPolicy.HandleException(ex, "Unhandled Exception Policy");<br />
DialogResult = DialogResult.Abort;<br />
}<br />
finally<br />
{<br />
if( tokenHandle != IntPtr.Zero )<br />
CloseHandle(tokenHandle);<br />
}<br />
}<br />
only two letters away from being an asset
|
|
|
|