|
I am not sure how to do a post build event for debug builds only, but I am guessing that the reason you want to do this might be to set certain configuration settings for your application.
I just wrote an article about how to control different setting for different configurations, debug (dev), test and prod.
This solution is only for .net 2.0 so I don't know if you are using .net 2.0 or not. I also don't know if this is your issue. Anyway, here is the link:
http://www.codeproject.com/useritems/SingleWebConfigFile.asp[^]
I hope that helps.
Ben
|
|
|
|
|
Hi guys
I have a problem when I use an Add-in to word, I want to get the filename / path of opened document.
(i.e i have a opened a document in word, now when i click my button it should return the filename / filepath of opened word document.
Thank you!
M. Nauman Yousuf
|
|
|
|
|
I had written a real time semi-automatic option trading platform in C# using Forms for GUI (and native C++ for math...).
Can anyone say if a WPF porting will make the program less responsive / more sluggish? This is supposed to be real-time so every millisecond counts.
THX
Trading for living
|
|
|
|
|
Epinephrine wrote: Can anyone say if a WPF porting will make the program less responsive / more sluggish?
Only your testing can determine that. You can see a huge performance swing depending on how you've written your code.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I think it will mostly depend on how the application is written. Keep in mind that WPF is a vector based display technology, but it shouldn't have a problem.
The better option will probably be to rewrite the application to take advantage of WPF and the data binding capabilities rather than to just port it. WPF is a completely new beast and there are better/different ways to do things than we had in WinForms.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
In my application i want to copy a file different computer in the same network without mapping that folder in my machine,is that possible,
please help
Tony
|
|
|
|
|
You can always get the file using the UNC path.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Hi all,
I am making simple screen capture win32 application using VC++.NET. I am able to capture it in the memory and getting handle of that bitmap but I am not able to show that bitmap in Picture Control in dialog box. Can I know what wrong with my code??
I am pasting my code here.
int nScreenWidth = GetSystemMetrics(SM_CXSCREEN);
int nScreenHeight = GetSystemMetrics(SM_CYSCREEN);
HWND hDesktopWnd = GetDesktopWindow();
HDC hDesktopDC = GetDC(hDesktopWnd);
HDC hCaptureDC = CreateCompatibleDC(hDesktopDC);
HBITMAP hCaptureBitmap =CreateCompatibleBitmap(hDesktopDC,
nScreenWidth, nScreenHeight);
SelectObject(hCaptureDC,hCaptureBitmap);
BitBlt(hCaptureDC,0,0,nScreenWidth,nScreenHeight,hDesktopDC,0,0,SRCCOPY|CAPTUREBLT);
::SendMessage(::GetDlgItem(hDlg, IDC_BITMAP_CONTROL), STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hCaptureBitmap);
ReleaseDC(hDesktopWnd,hDesktopDC);
DeleteDC(hCaptureDC);
DeleteObject(hCaptureBitmap);
Thanks,
Priyank
|
|
|
|
|
This code is nowhere related to .net framework.
Ask in VC++[^] forum.
|
|
|
|
|
Dear All,
My project has this files - Web.config, Global.asax
What are the important in here.
I need get complete idea about content in this file.
Any one can pls give clear idea or submit articles or links.
And also give idea about Forms Authentication / Windows Authentication ?
Regards
Kusal
|
|
|
|
|
hi,
in the web.config file you can make settings such as
SQL Connection parameters like this
<!-- Database Connection Parameter -->
<add key="DBType" value="SQL"></add>
<add key="DBRegion" value="EN"></add>
...
or you can configure own settings, which you can use in
your page.
for example, you can define an ImageSave dir
<add key="ImageSaveDir" value="C:\Temp\"></add>
now you can use this in your programm like this
string path = ConfigurationManager.AppSettings["ImageSaveDir"].ToString();
and about your other requests, i can't tell you anything, sry
hope this helps ya
greetz pdluke
(\_/)
(O.O)
(> <) <---- Put the evil bunny in your sig, help him acheive "WORLD DOMINATION!"
|
|
|
|
|
Should I install any Framework in Pocket PC device before I try to run my application? if yes which framework should i install and can anyone provide me where can I download it.
I Love SQL
|
|
|
|
|
I have two requirements of my religiously applied XML comments. I would like some way of also using shared documentation, e.g. a glossary of terms. The only way I can think of achieving this is including an external file at the assembly level. Then the generated overview documentation for each assembly can contain this information. Is there any other way of going about this?
My second wish is to extend the actual schema, to include tags that I can use to document relevant unit and integration testing information for types and members. I don't think this is possibly in pure VS 2005, but I suspect that something like doxygen may be able to allow this. I just can't get to experimenting yet so I thought I'd check if someone knows more than me.
|
|
|
|
|
I have a datagridview with a DataGridViewComboBoxColumn that contains items of self-builed types. When the selected value is changed i get a DataGridViewComboBoxColumn Data Error.
Why does this happen?
|
|
|
|
|
Hi,
I have a doubt.
Which is the correct way to redistribute an assembly?
Thank you
|
|
|
|
|
hello everybody
iam working on asp project here i need some datareport generated has to be exported to excel for this i wrote one dll and its working fine when i checked that using vb code but it is not working from the asp page?
i am unable to catch the error
its not giving any error and giving message as done (i placed as output)only
but it is not exporting to excel
can any body help
(not in asp.net its asp only)
regards
mamatha
|
|
|
|
|
You're in a .NET board. Repost your question to a board that deals with ASP if you expect an answer.
"Some people spend an entire lifetime wondering if they made a difference. The Marines don't have that problem."
( President Ronald Reagan)
|
|
|
|
|
hello,
iam working on asp and here we r implementing completely 3-tier architecture
and i want to shift to .net and know .net little.
actually before that iam very interested to know how to implemet .net in 3d
can any body give clear explanation plz
thanks in advance
mamatha
|
|
|
|
|
|
hello sir
thank u very much it helps a lot to update
thanks once again
|
|
|
|
|
Hello all!
I have a really strange problem wehen i want to build a setup solution. i
hope this is the right newsgroup.
undependent to the source-project: if i create a setup-project with or
without primary output and i want to build it - the compiler-output gives me
the error message "Schnittstelle nicht unterstützt." i think in english it
could look like "Interface not supported"....
i have no idea how to fix this ... if anyone has a solution to this then
please help!!!!!
solidIT.de - under construction
Components for Microsoft .Net
audittrail, objectcomparer, deepcopy and much more ...
|
|
|
|
|
I want to know whay i get error message when i connecting with socket?
the error message is "No such host is known".
|
|
|
|
|
Hi All,
I am a newbie to .NET and have a possibly simple doubt.
How can I invoke .NET functionality from C code?
Something like reverse JNI.
Thanks in advance for the help.
|
|
|
|
|
Either:
Register your .NET code for COM Interop, then invoke it through COM. This is the easier method.
Or:
Use the .NET hosting interfaces to load the CLR into your process, then load the appropriate .NET code. This is the hard way.
For .NET 1.1, see C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Tool Developers Guide\docs\Hosting Interfaces.doc. For .NET 2.0, see 'Hosting Interfaces for .NET Framework version 2.0' in MSDN Library, or online here[^].
|
|
|
|
|
I'm working on a C# WPF based web application prototype. I have a WebBrowser control to display web pages. I also need to do some http requests outside of the WebBrowser using HttpWebRequest. I'm logged in to a site so I need cookies sent, but HttpWebRequest does not seem to automatically send them, so these requests are failing. Somehow I need to convince HttpWebRequest to send the cookies for that site. This seems like a very basic thing to do, but I'm tearing my hair out trying to figure out how!
Anyone have any ideas? Since it seems (to me) to be such a basic requoirement, I thought there might be a property I could set on the request to tell it to include cookies. Alternatively, if I could get the cookie collection from the WebBrowser somehow and directly set it to the request I assume that would do it. Or am I missing something?
Thanks!
|
|
|
|