Click here to Skip to main content
Page 1 of 1,533
Page Size: 10 · 25 · 50


Author filtered by: Christian Graus [x]
Forum Message 15 Mar 2013  
Why would you link to a SO page ? You don't need a function to do that, there's methods built in. If you want to, it's just a case of iterating over the bits and copying them in reverse order ( so
Re: PRSDK Focus by Christian Graus
Forum Message 14 Feb 2013  
Is Canon supporting this SDK again ? I thought they had stopped. We're not working on this, I've not used Canon cameras at work for 4+ years now. Christian Graus Driven to t
Re: License? by Christian Graus
Forum Message 10 Feb 2013  
Sorry, you can use this code anywhere you like, in any form you like. Christian Graus Driven to the arms of OSX by Vista. Read my
Re: Great article ... but by Christian Graus
Forum Message 10 Feb 2013  
http://msdn.microsoft.com/en-AU/library/hh506443.aspx[
Answer 20 Jan 2013   license: CPOL
You have not called Open on the connection, so it is not open. In future, give us the error message if you want us to tell you what it means.
Answer 20 Jan 2013   license: CPOL
This is not a question. It makes zero sense. We can't give you a list of possible errors, and why would you want one ?
Answer 20 Jan 2013   license: CPOL
I assume this is ASP.NET although you did not say that ? What do you mean 'not working as expected' ? This code is horrendous, I can use this page to erase your DB due to SQL injection. However, this code will keep reading row after row and setting the text over and over. If your last two is...
C#
Answer 20 Jan 2013   license: CPOL
The picture field would be of type blob or image. You'd pass in the bytes of the image as a parameter to a stored proc or paramaterised query. You'd try to avoid doing it in VB6, a language that always sucked and has been obsolete for a decade or more.
Answer 20 Jan 2013   license: CPOL
The error means what it says ( although it's hard to decode when you don't just copy and paste it ). Your DAL is in a dll which is not referenced by your project, so it can't work out what you want it to load.
Answer 20 Jan 2013   license: CPOL
This is actually harder in WPF, because the logical way to do it, is not to draw on a bitmap, but to keep track of actions and draw them on TOP of your image. At least, that's how I did it when I did it and it was a royal pain
Answer 20 Jan 2013   license: CPOL
C# is the wrong language to do this, really. And yes, it's complicated, arcane and not terribly useful from the point of view of learning to program.
C#
Answer 20 Jan 2013   license: CPOL
What have you tried ? Put an image in side your table cell, and either point to the image, or if it's in the DB, point to a HTTP handler that takes the id, looks up the image and returns the data. There's tons of articles on this.
Answer 20 Jan 2013   license: CPOL
If you set them both to the same datasource, they will both update, it's the datasource and not the controls doing thisBut yes, it does sound very dodgy
Answer 20 Jan 2013   license: CPOL
You should buy a book on database programming and read it. Your question equates to 'I don't know how to use google and can't be bothered learning for myself, so please do my work for me'. I hope that was not your intention, but that's how it comes across. In general, I assume this is...
Answer 20 Jan 2013   license: CPOL
select oi.orderid as 'order id' from orderitems as oi where oi.partid in (select inv.partid from inventory as inv where inv.description like '%gizmo%' or inv.description like '%gadget%'or (inv.description NOT LIKE '%gizmo%' and inv.description NOT like '%gadget%')...
Re: Subscribing to Forums by Christian Graus
Forum Message 20 Jan 2013  
If I could subscribe to, say, unanswered MVC3 questions in the QA forum, I'd do that for sure. Christian Graus Driven to the arms of OSX by Vista. Read my
Answer 16 Jan 2013   license: CPOL
OK - 0 and no value are not the same thing. I suspect Amount_Debit is null and not 0. This code is not C#, I don't know what it is, but I suggest changing your data source to return 0 instead of null, or change the check to also check if it's null.
Answer 16 Jan 2013   license: CPOL
This looks like horrible code to run in a web page. What is it doing ? You are doing a cast, what does ReadIntPtr return ? I suggest stuffing your return value in to the right type, without casting. Then you will know for sure if the call itself is failing, or the cast. Are you sure that...
Forum Message 16 Jan 2013  
I work from home via VPN. Any Chinese CPians want a job ? Christian Graus Driven to the arms of OSX by Vista. Read my
Answer 10 Jan 2013   license: CPOL
You can do that. Just put a web browser control in your app and point it to the URL.
VB
Answer 10 Jan 2013   license: CPOL
You've asked this elsewhere and asked us to read it there. I don't use that site, but, funny enough, they told you your image is useless, and pointed you to an article on this site.
Ask about VB.net Programing by Christian Graus
Answer 10 Jan 2013   license: CPOL
This is not a question. If you can't even work out how to buy a book, then you're in trouble. There's tons of resources and it really doesn't matter which one you use. this site is great when you've bothered to do something, and have SPECIFIC questions.However, if you search the articles,...
Answer 10 Jan 2013   license: CPOL
You should only publically post your email address if you like spam. You should not ask people to email you, if you refuse to read these forums, why would we answer you ? The site will email you replies in any case.You seem to know the name of an algorithm and nothing more. You can...
Answer 10 Jan 2013   license: CPOL
Handle the change event on the combo box, and react to it. Pretty basic stuff. Why are you a beginner in MFC, in 2013 ? Do people still use MFC and C++ ? C# is way better.
Answer 10 Jan 2013   license: CPOL
This error means what it says. username is null. if (!string.IsNullOrWhitespace(username))
why i don´t get a number? by Christian Graus
Answer 10 Jan 2013   license: CPOL
titel ? This SQL should not run. If you're doing a count, you need a group by in order to select individual values, to. SELECT titel, COUNT(titel) AS numbers FROM users WHERE accid = '$showid' group by titelAlso, I think this will look for $showid as a string in your database, are...
DHtml page over writes by Christian Graus
Answer 10 Jan 2013   license: CPOL
It's doing what you asked. You will need to find the element you want to be the parent of your table, and then set the innerHtml of just that element. is there a get_element, or similar ? You select element by it's id.
MFC
Answer 10 Jan 2013   license: CPOL
You need to iterate over the items, and then search the sub items from there. There's no way to do it without writing the code.
Answer 10 Jan 2013   license: CPOL
What makes you think the keyboard layout changes on a per app basis ?
ORM or SQL queries? by Christian Graus
Answer 10 Jan 2013   license: CPOL
MVC, for sure. It's amazing. So much better than web forms. As for the rest, I would use Entity Framework, just because it's pretty standard, and it works well. I guess the alternative question is, do you have a ton of stored procs written ? If so, writing a data layer for those procs might...
Answer 10 Jan 2013   license: CPOL
No-one is going to write you a sample application. It's better to use Entity Framework, just add an edmx file and point it to your DB. Once you've done that, the connection string will be in your web.config, and you can change it if you like.
Answer 10 Jan 2013   license: CPOL
Why are you asking this over and over again ?HttpContext.Current.Usergets you the current user. User has an IsInRole method, or similar. Please don't ask this again, don't flood the site. Just ask, and keep editing your question if need be. Or better yet, ask clearly the first time.
Answer 10 Jan 2013   license: CPOL
Here's what we need to know:1 - does the success message get shown ?2 - does the back end method get called ?3 - is there a reason you need to use a webservice and not just an AJAX call ?4 - have you debugged this in Chrome to see what happens when it runs ? Are there any javascript...
Answer 10 Jan 2013   license: CPOL
A grid or repeater can be styled any way you like and will always be the easiest way to have complete control over your UI, while having the advantages of a data driven control. If this is a website, please mark your question as ASP.NET, in this case the answer is the same, but in future,...
Answer 10 Jan 2013   license: CPOL
IF you right click on the button in Chrome and choose 'inspect element', you can see the HTML at that point. If you click on the 'sources' tab, you can view and debug javascript. You should not have to do anything for Chrome, your code should just render links that work. I've never written...
Answer 10 Jan 2013   license: CPOL
This is an ugly mess. You can debug javascript in chrome, just right click and choose 'inspect element', then go to the 'Sources' tab and add break points. If, after debugging, you still don't know what is going wrong, try editing this question so that you're telling us which line of code is...
Answer 10 Jan 2013   license: CPOL
Put it in the common app data area, using Environment.GetFolder to get a path that all your apps can see.
Updation in sqlserver table by Christian Graus
Answer 8 Jan 2013   license: CPOL
Sorry, I misread the question. You can do this:update table1 set val = ( select top 1 val from table1 order by id)You'd have to do that for each column. You can do it all in one, if you like.update table1 set val = ( select top 1 val from table1 order by id), val2 = (select top 1...
N-tier + MVC +EF application by Christian Graus
Answer 8 Jan 2013   license: CPOL
MVC2 is rubbish. Don't use it. MVC is up to 4, but 3 is good. You're asking for someone to give you a complete project, I suggest rentacoder, you'll need to pay someone to do that.
Detect and connect online users by Christian Graus
Answer 8 Jan 2013   license: CPOL
1 - you can't. the most you can do, is use a timeout based on a time stamp2 - just mark each user as already connected to someone and don't connect them to someone else. A bit field in the DB.
Answer 8 Jan 2013   license: CPOL
The error is written in plain english. What do you think it means ? dateString is not a valid date time.
Error on dynamic checkbox click by Christian Graus
Answer 8 Jan 2013   license: CPOL
Well, your first issue is that you appear to be using ASP.NET and did not label your question properly.Secondly:chkcab.Attributes.Add("onClick", "chkcabchecked('" & TempPanelrack.ID & "');")I don't know what you thnk this does, but it assumes there's a javascript method called...
Answer 8 Jan 2013   license: CPOL
You have asked this over and over again, despite my having told you over and over how to do it.
learn GUI programming in C++ by Christian Graus
Answer 8 Jan 2013   license: CPOL
You should learn C#, because it follows conventions often used in other languages, like javascript and C++, but is a lot easier than those. You should buy a book on C#, that teaches you C# ( not windows or web programming ). Then move on to winforms, then ASP.NET MVC, because MVC is the best...
C++
Answer 8 Jan 2013   license: CPOL
You can write SQL that renames the columns, or write your own grid view template that labels the headers any way you wish.
C#
Answer 8 Jan 2013   license: CPOL
"expression has been evaluated and has no value." means the debugger ran the expression and it didn't return any thing. It means the Show method has no return value, but the debugger ran it. What is a modalpopupextender ? Is it part of the AJAX library ? You're doing a postback, so you're...
Answer 8 Jan 2013   license: CPOL
By finding one, and following the instructions. There is no such thing as 'THE' AJAX calendar. In fact, I don't see why a calendar control would need AJAX at all, only javascript.
Answer 8 Jan 2013   license: CPOL
Please don't email me privately. I won't respond.There's tons of examples on the web of slideshows using jquery. You can put ads in one of those, surely ?
Answer 8 Jan 2013   license: CPOL
I think you want to send files between users. The files don't need to go in a DB, the most sensible thing is to send them directly, peer to peer, through your application, with the server telling the two instances the other users IP address.
Answer 8 Jan 2013   license: CPOL
Use max in your sql, and the data will be in a column and show in your grid.Select max(x) from y

Page 1 of 1,533
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid