|
Does anybody know of any API or SDK which I can use to programatically generate visual studio project files and solution files?
Also is there a way to programatically generate a strongly typed dataset or xml schema by passing in a database name, and table name to some API, SDK or .exe?
thanks
|
|
|
|
|
danielk_ wrote: xml schema by passing in a database name, and table name
If you export the table as an xml file you can then use the SDK tool XSD.exe to generate a schema for it and then it can be used again to generate a dataset from it. I think , based on running xsd.exe in a prompt without any args (displays the help).
danielk_ wrote: programatically generate visual studio project files and solution files?
They're just text files, depends on what your input is but it shouldn't be too difficult to build your own utility for this. If you're really stuck take a look at the Solution Import Wizard (or something with a similar name) in SharpDevelop [^]for some pointers.
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
Hi all,
I am developing the Pocket pc application & i want to synchronize database between PC and Pocket PC. How can i do that? I don't have any idea about that.
I am using Sql server ce as pocket pc database and want to synchronize when Active Sync run. and tell me how to write the conduit for pocket pc bcoz my PC database is not sql server.
Help me plz.
shalabh
-- modified at 7:41 Saturday 22nd July, 2006
|
|
|
|
|
Hi all
I have an Task on Combobox and its style is DropDown
ie
When i move the cursor over combobox,
it should be dropdown and show its contents.
after lot work,i didn,t get up to the mark
plz suggest me.
thanks in advance
Nagraj
|
|
|
|
|
Handle the MouseMove event, when it's fired set the DroppedDown property to true.
May I ask why this is required since, for me it would seriously annoy me
The Welsh will always support two teams: The Welsh, and anyone playing England
|
|
|
|
|
Hi Ed.Poore,
I am newly joined in an company.
this is what the task given to me ,by our team leader.
Thanks For Your Response.
G.Nagaraju
|
|
|
|
|
Quick question,
Is it possible to either temporarily disable or even suppress an event from firing?
The problem that I'm am having is when I'm manipulating properties (related to the event) the event is firing and I'm, eventually, receiveing a stack over flow exception...
|
|
|
|
|
One simple approach is to put a local boolean viariable in the event handler, defaulted to false. before processing the event, check the flag, if it is fallse, set it to true and do the event processing the set it back to false. if it is true at the start, just return.
|
|
|
|
|
Rob,
Thank you for you reply. I appreciate it. This is what I ended up doing right after posting this. I'm sorry, I should have mentioned it.
I was hoping for a more elegant solution. But this works, so I will continue to use this. Again, Thank You.
|
|
|
|
|
I want to be able to detect .net framework applications and version needed(1.0,1.1,2.0,3.0) applications,executables,and dlls on a PC. Is this possible?
|
|
|
|
|
|
Hi,
Thanks in advance. I have an application which loads the database tables with five different site codes. In future the number of site codes may increase. For each site code 14 files are sent from another server to our server.
I have to write an application which checks for all the files to arrive and converts it into UTF-8 format and then calls the PL/SQL package and this should run parallely.
So I thought of using Multithreading with one thread for each of the site codes with site code as parameter.
Here is the problem I face. For instance, I have a flag which would be set to "No" if the files are missing and "Yes" if the files exist. In multithreading if I have to preserve the variable I have to block the variable from the other threads using it. Suppose for the site code where files arrival get delayed for 5-6 hrs or for some reason and it's thread blocks the variable then the other threads has to wait for this and this is not what I want. And I have set a lot many flags for in this application. Is Multithreading useful in this scenario? Please let me know your suggestions.
Thanks & Regards,
Das.
|
|
|
|
|
I think you would probably want to create the boolean flag with the <threadstatic()> attribute, so that each thread has its own copy of the flag to work with.
This blog explains the usage of ThreadStatic (it's in C#, but you should get the general idea)
ThreadStatic[^]
Hope this helps.
Keith
|
|
|
|
|
why not create a class to process a single site code, and a manager class that creates an array of instances of the first (sitewatcher) class based on a configuration file entrly (list of the site codes). In ieach sitewatcher class, create volatile booleans to represent the states you are interesed in (make them volatile so that the compiler doesn't optimize their usage in loops, etc. Have your manager class periodically iterate the array of sitewatches, if any is not complete, check for files, if there are any, start a filemover theread on that instance, mark it as busy, then move on to the next. repeat the iteration until all are complete...at the end of the day, if all are complete, move or remove tthe files for each, clear the complete flag for each instance, and start all over.
Using a configuration file to specify the sitewatcher entries in the list will make it easy to add another site, just edit the config file and restart the app.
|
|
|
|
|
Hi:
I am using a multiview inside of a formview. The multiview represents different tabs that I have (5 tabs in total).
The problem I have is when I switch modes of the formview. When I am in the readonly mode and want to edit the record, on clicking the "edit" button, the multiview goes back to the first tab instead of staying on the tab that I was on when I clicked on the button.
Any ideas as to how to make it stay on the current tab?
Thanks.
|
|
|
|
|
Same problem here... Anyone who has the solution ???
|
|
|
|
|
I would like to set a property that takes an argument as the data mapping value of a datagrid column. So in instead of
mappingname = "Name"
I would like to be able to say
mappingname = "fields(name)"
Is this possible, and does anyone know how it could be done? And yes, I promise that I really, honestly have a good reason for wanting to do it
Thanks
Luke
|
|
|
|
|
What is 'fields'? Could you not do this? mappingName = fields["name"]
:josh:
My WPF Blog[^]
|
|
|
|
|
Hi Josh,
Thanks for the reply. 'Fields' should have been 'FieldValues' - signature below.
Public ReadOnly Property FieldValue(ByVal dataSource As String) As String
Basically, I have a collection of objects which are wrappers to their underlying field values (eg datasouce and value string). However, I want to be able to access the field values directly, through my FieldValue property, rather than indirectly though the various other accessors. I know this sounds a lot like a datatable, but trust me
Tried you suggestion, but no luck. A string is required, and I thought the following would have worked:
.MappingName = "FieldValue(" & vbQuote & "wmsName" & vbQuote & ")"
where 'wmsName' is the argument I want to pass to the FieldValue property. No joy though.
Thanks for your help,
Luke
|
|
|
|
|
You're making the assumption that the MappingName property will dynamically invoke your FieldName property, based on some type of parsed interpretation of the string value. I assume that MappingName is not built that way.
Why did setting MappingName to FieldValues("whatever") not work? What was the actual problem?
:josh:
My WPF Blog[^]
|
|
|
|
|
Hi Josh,
Why did setting MappingName to FieldValues("whatever") not work? What was the actual problem?
Just the usual problem when mapping names don't match a property in the bound type: the column is not displayed. No exception or anything useful to help debug! .
I accept your points about dynamic invokation - maybe I was hoping for too much.
Thanks
Luke
|
|
|
|
|
Hi Folks,
I would like to write an installer for my C# program. I have no experience with installers, but I know there are some programs/tools to help me do it.
Can you recommend to me how to approach this? Maybe there are some tutorials that can help me.
In addition to the common installation tasks (copying files, registering, uninstalling) I would like to do the following in the installer:
Check if the required version of the .NET framework is installed, and if not, install it;
and the same for the Managed DirectX version.
Thanks for your help!
|
|
|
|
|
Add a Setup Project (or a Web Setup Project) to your solution. Search CP for articles about how to configure it.
:josh:
My WPF Blog[^]
|
|
|
|
|
|
NSIS[^] is by far the best installer I've come across, although it will take a short while to become experienced in it.
VenisIX[^] is a good editor with a built-in wizard for generating scripts.
Take a look at SharpDevelop's[^] installer for functions to check for .NET Framework existance.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|