15,867,594 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Sachin k Rajput (Top 21 by date)
Sachin k Rajput
11-Jan-17 8:23am
View
Thanks for your suggestions, but you can notice that single thread is taking 21 seconds but two threads takes 42+ seconds.I have tried these approaches but unable to bring it to 20+ sec.
Sachin k Rajput
11-Jan-17 3:46am
View
tried but no luck..
Sachin k Rajput
11-Jan-17 2:15am
View
I run two instances by using "Debug"- start as new instance and the time is printing in stopwatch.
Sachin k Rajput
23-Apr-15 9:37am
View
Hi, I tried the same but it's not working.
Actually I'm loading images from DB and putting these on gridview and a button infront of it on click of which a link will be generated consisting that image.
Have you any idea about this?
Sachin k Rajput
22-Apr-15 8:04am
View
Thanks for your reply actually I want to show a real image on a unique link on click event of Grid View.
Whenever I'll click the Grid view button then there should be a new link page having image(~/Image/abc.jpeg) on it.
Have you any idea of this?
Sachin k Rajput
22-Apr-15 6:46am
View
Will you please elaborate a little bit.
Sachin k Rajput
15-Mar-13 6:07am
View
Then post your suggestion...
Sachin k Rajput
15-Mar-13 6:04am
View
where is the solution?
Sachin k Rajput
25-Feb-13 4:37am
View
First I created that thing based on - Checking the data, size, write to a file, then check size, then display.
That's OK but when I tried to load it through buffer there is no image data.
Sachin k Rajput
13-Feb-13 22:52pm
View
Its done finally....
Sachin k Rajput
13-Feb-13 4:36am
View
@Sergey, Thanks for your solution it worked.
But there is a problem when i resize the window the child window disappears.
Have you any Idea?
Sachin k Rajput
13-Feb-13 1:47am
View
Thanks!
Now I got it...
I'm trying this and after this I'll return on discussion.
Sachin k Rajput
13-Feb-13 1:19am
View
I got your point and I'm agree with this.
But for webcam preview how can I switch to Directx only whether preview is only seen in directshow that's a part of MS-SDK.
Sachin k Rajput
13-Feb-13 1:03am
View
in directshow its a IVIDEOWINDOW and after render we can put caption there as I have seen from few examples and something like this http://www.geekpage.jp/en/programming/directshow/ivideowindow-1.php, but its not working.
And Textout is to call some text on paint event of window but that's not working too.
Sachin k Rajput
12-Feb-13 23:59pm
View
Its an app that is being done in VC++ win32 environment.
So put_Caption is failed,
Textout is failed and childwindow is also failed.
That's why the thing is how to write a simple text over preview.
Sachin k Rajput
12-Feb-13 23:57pm
View
Thanks Abhinav!
for your answer, I really appreciate it.
But the thing is I'm implementing my application in VC++.
Its a webcam preview over which I want a text.
Sachin k Rajput
1-Feb-13 7:16am
View
for creating a bitmap from a buffer is:
tagBITMAPFILEHEADER bfh = *(tagBITMAPFILEHEADER*)buff;
tagBITMAPINFOHEADER bih = *(tagBITMAPINFOHEADER*)(buff+sizeof(tagBITMAPFILEHEADER));
RGBQUAD rgb = *(RGBQUAD*)(buff+sizeof(tagBITMAPFILEHEADER)+sizeof(tagBITMAPINFOHEADER));
BITMAPINFO bi;
bi.bmiColors[0] = rgb;
bi.bmiHeader = bih;
char* pPixels = (buff+bfh.bfOffBits);
char* ppvBits;
hbitmap = CreateDIBSection(NULL, &bi, DIB_RGB_COLORS, (void**) &ppvBits, NULL, 0);
SetDIBits(NULL, hbitmap, 0, bih.biHeight, pPixels, &bi, DIB_RGB_COLORS);
GetObject(hbitmap, sizeof(BITMAP), &cBitmap);
Sachin k Rajput
1-Feb-13 7:14am
View
for WM_PAINT code is
[code]
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc = BeginPaint(hWnd,&ps);
if(hbitmap != 0)
{
HDC hdcMem = CreateCompatibleDC(hdc);
SelectObject(hdcMem, hbitmap);
BitBlt(hdc, 10, 10, cBitmap.bmWidth, cBitmap.bmHeight, hdcMem, 0, 0, SRCCOPY);
}
EndPaint (hWnd, &ps);
}
break;
[/code]
Sachin k Rajput
1-Feb-13 6:48am
View
as I've checked to receive bytes in a text file,these are bytes but there is nothing on window panel.
Sachin k Rajput
1-Feb-13 6:10am
View
its there...
On checking the bytes received,,its ok to be there from both client and server side, But my code is unable to read these bytes to create a bitmap. That's the problem. Connection is OK. Compilation is OK. Have you any idea for this code?
Sachin k Rajput
1-Feb-13 6:06am
View
On checking the bytes received,,its ok to be there from both client and server side,
But my code is unable to read these bytes to create a bitmap.
That's the problem.
Connection is OK.
Compilation is OK.
Have you any idea for this code?
Show More