I'm working on a venue booking system.This system allows a person to make a booking for any period during the year(for a whole month or week).My problem is getting my system to check and display available time slots between a specified range.for example: a person may book from 12 August to 30 August,now how do i get the system to check and display available or unavailable slots.i'm using a grid to display all of this so what i want is my grid to shade with a color the booked time slots on a particular day and allow a person to select the slots they prefer on the grid with a different colour.Any help with this will be appreciated.(code,sql statements)
I think I'll need to do some wizard controls in the future to accommodate for the short-comings of certain users.
I'd need something that supports some databinding, or at least makes it simple to perform databinding actions myself. I did a quick search on CP and found a good deal of Wizard controls, most of them somewhat dated.
Does anyone have any suggestions for a wizard control that's flexible and easy to implement? Any that are packed with features but a pain to implement?
Sounds like a candidate for an article. Why not write one of your own, and share it with us, especially as you get to define the features you feel you need? If you have specific problems, or just want advice on features, we'll be glad to help. I look forward to seeing this article.
Deja View - the feeling that you've seen this post before.
Indeed, a great article idea. If people wouldn't mind my writing style (that tends to get off topic and so interjected that it reminds me of a heavily nested, maybe a recursive algorithm) and vocabulary, or lack thereof. And don't get me started on tangents... which reminds me of one of my calculus profs for some reason. He always stopped to talk about his statistician friend who counts insects in the woods and looks like a sasquatch... anyway, that sounds like a great idea.
But I'm not sure if I have time to re-invent the wheel. Which is why I wanted to know what people liked to use.
Now that you got me thinking about it though, I'm getting some design thoughts running through my head. It'd be a fun project to do in my off time after I finish my wife's joint story authoring web-app (she's writing a story in conjunction with her friends and one of them is going crazy with her character so she asked me to make something that forced a kind of co-author approval before it can be appended to the main story). My only problem would be coding for the designer. It's not something I've done before. Fortunately, I've got a lot of sample code to go off of and a great community on CP.
I'm implementing the XmlSchemaProvider attribute and am having some issues defining my XSD. I've created a XSD file which will be an embedded resource in an assembly. I'm attempting to import the MS WSDL types schema so that I can provide a defintion for char datatype, but every way I try and add the namespace and import the schema I get resolution errors. I'm VERY new to XSDs and have some working knowledge of XML so I'm not 100% positive I can do what I want to here, but this is the basic pattern I have seen in many WSDLs for adding support for char datatypes.
I posted this question in the XML message board as well, but was hoping some C#ers out there have come across this same issue while implementing the XmlSchemaProvider attribute.
Any answers or shoves in the right direction would be appreciated.
I write a windows service. This program copy file to another location. Program is properly working in on local disk. If I want to copy file between cliend and server i get error: ERROR 5 (0x00000005) Accessing Source Directory \\server\sharedFolder\ Access is denied.
Same code properly working on windows application, but not work in windows service application. I think this problem related about account permission. Windows application use current user name and password, but maybe windows service application use different account information. What can I do?
Probably your service is running under the system account which usually has no network rights. Either you give the system account the access rights needed (not recommended because then any other service or virus running under the system account will be able to fiddle with the network), or you use impersonation as Marc suggested, or you create a user account with exactly the rights needed and install your service to run under this very user account. I seem to recall that when deploying your service with msi you can create this user on the target machine as well.
And here is the method signature in the header file:
void FAR ic_subcall ic_proto((LPSTR, LPLONG, LPLONG, LPLONG, ...));
This is how i have my struct setup in C#. Here i am using a byte because i found (somewhere) that it is the equivelant to an unsighed char.
internal struct icstring
public long len;
public byte text;
And finally, here is where i using the DLLImport
[DllImport("uvic32.dll", SetLastError = true)]
private static extern void ic_subcall(string sub_name, long sub_name_len, ref long code, long num_args, params icstring var_args);
When i make the call it throws an exception "Attempted to read protected memory....". I can't seem to figure out what is wrong. I'm not sure if it is the params keyword or if my struct is messed up somehow. Could someone point me in the right direction?
Don't be overcome by evil, but overcome evil with good
OK, I never tried it this way. I keep my P/Invoke stuff always as simple as possible.
Seems like maintaining stack will not be a problem, but I am still very worried
about marshaling types. Of course, simple value types (int, double, ...) and
strings will probably just work fine, but what about structures, class objects, etc?