15,881,027 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 SNI (Top 53 by date)
SNI
7-Apr-22 11:57am
View
Can be deployed over the internet
SNI
29-Mar-19 6:50am
View
forgot to provide ADS url
http://scripts.dragon-it.co.uk/scripts.nsf/MainFrame?OpenFrameSet&Frame=East&Src=%2Fscripts.nsf%2Fdocs%2Fbatch-password1!OpenDocument%26AutoFramed
SNI
27-May-16 5:51am
View
I think my problem is in .js only where I have to call different urls depending on the resource_id of the state.
SNI
27-May-16 5:25am
View
you can see the resource_id in url that I have shared.
https://myurl/resource.json?resource_id=SDFSJDF34232&api-key=ANCBDHDBNCJDJD&fileds=fld1,fld2,fld3....
SNI
27-May-16 5:16am
View
Thanks for your reply but for every state it has different resource_id and also fields names are also differ.
https://myurl/resource.json?resource_id=SDFSJDF34232&api-key=ANCBDHDBNCJDJD&fileds=fld1,fld2,fld3....
SNI
27-May-16 5:15am
View
Message Removed
SNI
6-Feb-15 3:35am
View
No but jQuery1.8.3 is debug version and min is release version. So will that affect on production environment.
SNI
20-Mar-14 1:47am
View
nothing missed. Thanks for your answer.
SNI
19-Mar-14 2:09am
View
Thanks for your reply. We have few limitations bcoz we are using embeded version of linux so we are not able to use any server side scripting lang (e.g. php,ASP.Net...etc). We only have an option of shell script. But no idea how to use shell script to achieve this.
SNI
6-Dec-13 5:38am
View
document.getElementById("ID").innerHTML=myFuntion(xmlhttp.responseText,"ID");
xmlhttp.responseText contains the data for both ID and my_ID field.
SNI
26-Nov-13 6:21am
View
Hi,
I tried with the examples given. I created a php file on my server and from html I am checking the hint but in IE8 it give Access Denied error when xhr tries to open the php script on my server. Please let me know what could be issue.
SNI
21-Nov-13 2:43am
View
I tried with this but it doesn't work. I will explain what I am trying. In php I am reading a huge file (say 100MB) and I am echoing that. Pls see code below
$val=readfile("100mb.file");
ob_start ();
ob_flush();
echo $val;
sleep(10);
echo " <br />";
ob_flush();
ob_end_clean();
ob_end_flush();
I am clearing everything after 10 secs. After 10 secs I want to stop browser to stop this buffer downlaod/caching. But this does not work. Pls let me know where I am going wrong.
SNI
20-Nov-13 5:09am
View
Thanks. I opted the second option. Now I am able to get the heavy payload using php, which pushes the data to client but I need to wait till the data is completely downloaded to client. I tried to stop this outputting of buffer by clearing it at server side. But no success. Please let me know how to stop this kind of buffer caching at client side either in HTML or javascript after some time interval?
SNI
19-Nov-13 6:44am
View
Hi, the above code working fine when I write a php code at server side. I have setInterval to 2000ms. So after every 2000ms the request is sent to the server and data get downloaded in terms of http response but now my problem is since I am downloading a huge payload it is taking time (say 6-8 seconds) to load XMLHttp responses for concurrent requests. Can you pls advice what needs to be done to get faster faster response so that user can feel the data is downloading.
SNI
13-Nov-13 5:44am
View
Deleted
Thanks I am able to test upload speed. but I do not want to download any file on user's m/c. Is there any way by which we can download payload and test download speed, same way we test upload.
SNI
17-Oct-13 3:04am
View
var xmlhttp;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
setInterval(loadFile,2000);
function loadFile()
{
var data = "";
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
var myval =function(xmlhttp.responseText,"MYVAL");
if(myval <0){
document.getElementById("rtHeader_val").src="images/LTE/1.png";
}
document.getElementById("myval_1").innerHTML=myFunction(xmlhttp.responseText,"MYVAL");
if(xmlhttp)
{
//myinfo is input file from which application reads the values
xmlhttp.open("GET","/config/myinfo",false);
xmlhttp.send();
data=xmlhttp.responseText;
}
}
This code updates value after 2 secs on chrome but not IE 8
SNI
16-Oct-13 12:54pm
View
In javascript I have set an interval of 5secs. every 5 secs script executes and reads the file using XmlHttpRequest object and parsing the xml response. this code works well in google chrome but in IE 8.0 I need to launch a browser again to see the changed values in file. This file is get updated by other process.
SNI
15-Oct-13 4:24am
View
I have an icon/image on my screen on right side. whenever user clicks it or do mouseover then it shd show another screen. User shd be able to get drawer effect (without any impact on current screen) i.e when it mouseover then it show the screen and on mouse leave it removes the screen.
SNI
14-Oct-13 5:17am
View
There is no support for any server side scripting language such as php,perl..etc...
SNI
12-Oct-13 3:30am
View
Hi I am stuck to one point. I am using php to develop this UI for dongle device but I have a limitation of using PHP since it makes my device slower so that I am looking for another option that will help to develop UI. I have the following features needs to be provided in my Web UI:-
1) Reading from config file and show to user in specific time interval (say 5 secs)
2) Reading values from conf file and plotting a graph (with gradient effect)
3) Providing drawer effect to user on button click.
4) I have to update different parts of my Web UI.
Please suggest me which technology shd I opt for to develop this such UI (javascript/Ajax/....???).
I am using lighttpd as a web server.
SNI
11-Oct-13 4:29am
View
Thanks for reply. I want to parse file after specified time interval so which option is better either file_get_contents to read the contents ot fopen the traditional way?
SNI
8-Oct-13 14:02pm
View
Thanks, this answers my question. I did the same thing and as you mention creating an application in (may be VC++) which will detect device change event and then launch the web ui for that we need to make this app to act like a service. I was just trying to identify whether I could remove this overhead of creating such app.
One question if we create an app as I mentioned in MFC then is it possible to work as a windows service? whether this app will be able to get the device change event?
SNI
7-Oct-13 4:52am
View
fine....
It is dongle device for which I am developing this UI and web server would be lighttpd. We develop this UI and host it in dongle like most of the ADSL routers. As soon as user connects the dongle device then based on any browser installed on client m/c it shd pop up this Web UI to user to view or modify device settings.
SNI
7-Oct-13 2:00am
View
sorry...
I am developing Web UI for ADSL (device) like router, which allows user to view and modify settings of this device. What I want to try is to launch web UI as soon as I connected to system. I want to know whether it is possible using PHP or any other language like CGI or FastCGI?
SNI
5-Oct-13 1:36am
View
Thanks....it worked
SNI
4-Oct-13 5:57am
View
I was able to set the font of the text and also able to align text horizontally centered. I also want to align text vertically centered that is not working...
following is the code snippet.
CDC* pDC = GetWindowDC();
pDC->SetBkMode(TRANSPARENT);
pDC->SelectObject(m_font);
pDC->FillRect( &rect, &brush);
DrawTextEx(pDC->GetSafeHdc(),text.GetBuffer(),text.GetLength(),rect,DT_EDITCONTROL | DT_CENTER | DT_VCENTER,NULL);
SNI
4-Oct-13 5:38am
View
Thanks it works. I tried to align text vertically centered but that is not working.
SNI
17-Sep-13 5:46am
View
I am agree with you. But I am not saying there is a problem with the code that I have used but might be with the way I am using it. So my point is whether is it possible to load background image to the form views when used in splitter window?
SNI
28-Aug-13 1:44am
View
Whether MFC is supported on Windows 8?
SNI
25-Aug-13 1:23am
View
Is there any way to plug libs that use C API and MFC API with .Net Environment (C#) on windows 8 and Windows Phone 8?
SNI
24-Aug-13 5:31am
View
Can some one suggest whether to choose 16:9 or 4:3 aspect ratio of screen as a base line for developing desktop applications. If we use either of the two then how to handle the quality of image for different screen resolution prgramtically.
SNI
22-Aug-13 12:31pm
View
Thanks for reply.
Whatever I have mentioned above is from the the same link that you have provided. In this url it is not clear whether UI that I am expecting can be developed. I hope you understands what I am trying to say....
Also pls explain the point you have made about MFC code division.....
SNI
22-Aug-13 8:06am
View
Thanks for your replies.
I want know about the option to choose. I have application that is developed in MFC (VS2010) and I want to use the code developed in C++ not in MFC (Since MFC is not supported on windows 8 / windows phone 8). There are three options
1) .Net (XAML & C#/VB.Net)
2) Native (C++,Direct3D...etc)
3) Windows Runtime (C++ & XAML)
I have 3rd part libs that are developed in C. I would like know which option to choose.
I know if I go for .Net then I need to convert my libs in DLL and use as an interop and also I am using C# and XAML then I can use the same code base in desktop apps as well.
If I choose Native (C++) then I am not sure how to develop my UI since here we can use Direct3D but it is for game development and I am developing simple telephony application for desktop and phone users which have Voice, Video and Messaging services capabilities.
If I go for Windows Runtime then I can use C++ with XAML and my C libs are not required to convert in DLL but not sure what are the limitations that I can face with WinRT in future. Using WinRT the application can run only on Windows 8 and wont support for Win XP,7 desktop users.
I want make codebase such that with minimal changes it can be used in Windows Phone as well as in desktops.
Please suggest me for above queries...
SNI
22-Aug-13 3:15am
View
So you mean to say we can programatically adjust the size of image based on resolution. I have a doubt, if we have 4:3 size image and I make my resolution to 16:9 or 5:4 can then be image quality remains same?
SNI
21-Aug-13 13:35pm
View
I have libs in C which I used it with MFC (VS2010) application. But due to some limitation in MFC I want to check whether I can use these C APIs from C# so I do not need to convert these libs into dll and then use as an interop. pls suggest.....
SNI
19-Aug-13 12:23pm
View
Deleted
But there are lot of screen sizes and resolutions. It will need to consider all the probabilities and need to handle all of these programatically.
SNI
12-Jul-13 5:25am
View
I have seen the solution 1 below mentioned, there it is saying the problem with sm_img.ReleaseDC. I am getting error while exiting is Assertion Failed expression m_hDC == 0.
SNI
10-Jul-13 6:11am
View
No. I am trying to ask in order to provide rich GUI we can use either HTML5 /C# XAML since MFC has some limitations. HTML 5 will provide cross-platform support (Mac,Linux,...) since it is web based and C# /XAML (desktop) will provide the rich GUI but only in Microsoft ecosystem. So my confusion is whether to go with HTML5 / C#. If we go with HTML 5 (UI layer) then how it is possible to communicate with business layer written in VC++/C++. What kind of problems/limitations that could come.
SNI
2-Jul-13 13:22pm
View
I have converted my code C++ unmanaged code into managed dll and used in C#,WPF. I am not sure whether this code will work on Win7 and win 8 (32 and 6 bit) since I have some H/W communication with dongle and web camera & also 3rd party libraries developed in VC++. Can someone suggest me what problem that could arise with this architecture?
SNI
22-Jun-13 1:33am
View
Can you pls elaborate more on creating managed dll. As per my understanding I need to create C++ managed dll and it then called from C#. If this understanding is correct?
SNI
21-Jun-13 6:31am
View
it depends on cmnd that we sent. For some cmnd it return 150 bytes and for others it could be more that 1024.
SNI
21-Jun-13 6:00am
View
Hi I ma using Win7, i dont have this option enable. I used putty on this which connects to server and send cmdsand get proper response
SNI
21-Jun-13 3:05am
View
I took the sample application of C# and trying to send commands using that but its gets hanged in receive. Tried with Asysnc sample also.
SNI
20-Jun-13 8:35am
View
Deleted
Encoding ASCII = Encoding.ASCII;
string AtCmd = "AT%MEAS=\"2\"";
Byte[] ByteGet = ASCII.GetBytes(AtCmd);
Byte[] RecvBytes = new Byte[1024];
String strRetPage = null;
// IPAddress and IPEndPoint represent the endpoint that will
// receive the request.
// Get the first IPAddress in the list using DNS.
string server = "127.0.0.1";
IPAddress hostadd = Dns.Resolve(server).AddressList[0];
IPEndPoint EPhost = new IPEndPoint(hostadd, 9999);
//Creates the Socket for sending data over TCP.
Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream,ProtocolType.Tcp);
// Connects to the host using IPEndPoint.
s.Connect(EPhost);
if (!s.Connected)
{
strRetPage = "Unable to connect to host";
// return strRetPage;
}
// Sends the GET text to the host.
if (s.Send(ByteGet, ByteGet.Length, SocketFlags.None) == ByteGet.Length)
{
// Receives the page, looping until all bytes are received
Int32 bytes = s.Receive(RecvBytes, RecvBytes.Length, 0); ---> Here it gets stuck
while (bytes > 0)
{
bytes = s.Receive(RecvBytes, RecvBytes.Length, SocketFlags.None);
strRetPage = strRetPage + ASCII.GetString(RecvBytes, 0, bytes);
}
}
}
SNI
20-Jun-13 8:32am
View
Yes I am sending AT commands to the device i.e. dongle in this case, which returns response to me.
SNI
19-Jun-13 6:52am
View
I have 3rd party libs developed in VC++ (VS2005). but I dont want to migrat that in C#. What I can do is I can convert these libs in .dll (interop) and then I can use it in my C# application. But I am not able to understand creating managed dll for VC++ (business logic) and then use it in C#, WPF. Do you mean converting this unmanaged code to managed code? Can you pls elaborate more.
SNI
19-Jun-13 2:45am
View
Thanks for your reply. So u mean to say applications developed in WinRT does not run on WinXP and Win7?
SNI
9-May-13 8:31am
View
I also think the same way but when I see the following URL then I think it would be easy.
http://www.codeguru.com/cpp/cpp/cpp_managed/nfc/article.php/c14589/Hosting-WPF-Content-in-an-MFC-Application.htm#page-2
SNI
19-Apr-13 13:55pm
View
how could we achieve it for CStatic. Any idea?
SNI
17-Apr-13 7:54am
View
:)Thanks for ur kind reply.
This class is defined in afxcmn.h of VS2010. But I am unable to find any sample / example of this class. If u know pls let me know.
SNI
16-Apr-13 13:20pm
View
Thanks for ur reply. Is there any way to show background image for menu and changing text color for menu options.
SNI
10-Apr-13 4:29am
View
we have to develop application which is similar to Message Inbox with look and feel of Android. So while chatting user shd get experience as that of Android. We have to show incoming and outgoing messages as bubble messages same as Android.
SNI
28-Mar-13 2:02am
View
Thanks for all your efforts. But what I am trying is that whenever my application in User Mode received any mesaage and screen is locked then I want to show some notification on cntrl+alt+del screen.
Show More