364 Topics

Member Avatar for
Member Avatar for V3N0M

Hi Everyone I am a first year student but I started thinking about a third year project. I would like to know something that is programming related and less algorithms I am currently tring to master C and then go and learn how to develop GUI for C programs. And …

Member Avatar for Brandon_38
0
246
Member Avatar for Chole

This blog post will compare the two most popular cross-platform mobile app development frameworks, Flutter and React Native.The world of mobile app development is a complicated place with many competing frameworks. It can be hard to know which one to use, but this article will help you find out if …

Member Avatar for Sanket_17
1
218
Member Avatar for peter.ding

How do I get the physical keys of a connected Bluetooth device and set system related functions for the keys As shown here: ![IMG_57177A6B2642-1.jpeg](https://static.daniweb.com/attachments/4/7aa01a1f769619a4221e30317b5f9f83.jpeg) ![IMG_5E8A6E9B5D86-1.jpeg](https://static.daniweb.com/attachments/4/bd4254b2df72e705ffcdef69b223fa6a.jpeg) ![IMG_26BB5884272B-1.jpeg](https://static.daniweb.com/attachments/4/d7de67d43f5a4254a7ae3be5f837f7b8.jpeg)

Member Avatar for rproffitt
0
66
Member Avatar for peter.ding

I have a requirement that says something like this, I need to make an ios app that reads the hardware data that's being sent, it's ble hid based, and now I need an objective-c demo. Somebody tell me. Thank you

Member Avatar for peter.ding
1
220
Member Avatar for pwolf

I am interested in technology, however I do not wish to go to university and after stumbling upon the MIT Challenge, I have taken it as a proof of concept. Clearly education is changing, and I would like to take a less traditional route. But before I go too far, …

Member Avatar for bendunk71
0
328
Member Avatar for b10hzrd

[ATTACH=RIGHT]19013[/ATTACH]I will start off by saying that I don’t like to think of myself as lazy, instead I prefer to think that I am much too busy to take the time to complete the more mundane chores around the house like vacuuming and so on. Ok, I’m lazy and vacuuming …

Member Avatar for John_197
3
1K
Member Avatar for jkon

I am a partner in a company that deals with various aspects of the web presence of a company. Those aspects some times touch back office and more often replace it entirely. I have no idea of the mobile games field but last week my interest flamed. I tried several …

Member Avatar for jkon
1
593
Member Avatar for Luis_6

I'm having a lot of issues wring codes in C++ specialy when 3 files are required (.h, .cpp and main.cpp). Very different to C that it was very easy for me but not now with C++. I nee to write a program to do the following: Create 3 files for …

Member Avatar for ddanbe
0
662
Member Avatar for Micheal_6

How can I make the URL displayed in the MessageBox clickable, such that when a user clicks on it, it will open the link in a web browser? string msg = "MyApp | v1.0.0.0.1" + Environment.NewLine + "© 2016 MyApp" + Environment.NewLine + "All Rights Reserved." + Environment.NewLine + "For …

Member Avatar for tinstaafl
0
4K
Member Avatar for burningkrome

I'm a developer lead and I'm trying to get actual statistics on how many developers are comfortable in multiple C-like languages. I'm specifically interested in the crossover amongst C, C#, C++, and Objective-C. This is a legitimate quesiton, not a spam. Instead of asking everyone to post a comment...I've created …

Member Avatar for rproffitt
0
239
Member Avatar for <M/>

I am trying to learn objective C with my brother and I have stumbled onto a problem involving one trying to collect a user's input and checking if it is odd or even. I made this, and this works to test if a number is even or odd: #include <stdio.h> …

Member Avatar for Vinu_2
0
891
Member Avatar for pro-tek
Member Avatar for Haider85

I have a Health based .Net (C#) project that needs to import a huge chunk of medical records from an old database that were used in a different application. The database has been successfully migrated to the version compatible with our application. The problem is the contents in one of …

Member Avatar for rproffitt
0
391
Member Avatar for Sherif_3

How can i write a C++ program to implement a finite state machine (FSM) simulator. The objective is to enable system designers to model and simulate their systems’ behavior while still in the design phase. The simulator reads an input file which contains the FSM description. The FSM description file …

Member Avatar for rproffitt
0
371
Member Avatar for Kyungwon

Given a typed List collection of int values named dueDays that has already been sorted, write the code to retrieve the index of the element with the value 30 and store the result in an int variable named dayIndex. Given a typed List collection of int values named dueDays that …

Member Avatar for AleMonteiro
0
409
Member Avatar for cambalinho

i have these code for get image pixel data: typedef std::vector<BYTE> pixeldata; pixeldata GetImagePixel(HDC hdcImage) { BITMAP bmp = {0}; BITMAPINFO Info = {0}; memset( &bmp, 0, sizeof(BITMAP) ); HBITMAP hBitmap =(HBITMAP) GetCurrentObject(hdcImage, OBJ_BITMAP); GetObject(hBitmap, sizeof(BITMAP), &bmp); BITMAPINFO info { }; info.bmiHeader.biSize = sizeof(info.bmiHeader); info.bmiHeader.biWidth = bmp.bmWidth; // pay attention …

Member Avatar for cambalinho
0
338
Member Avatar for Brandon_11

So the objective of this program is very similar to another C# homework problem (practically the same) but I am allowed to use arrays. I still need to set up the last error checking statement, but I wanted to finish and test with what I have so far. I have …

Member Avatar for hericles
0
241
Member Avatar for iDeepak

[Click Here](http://i.imgur.com/ka0Pnnr.jpg) I have a app having multiple Xib files calling in one main Xib and its class. I have added expand and collapse view which works on particular xib expand and collapse subviews as required and reduces/Expands Height too. This works well for one xib section when all tab …

0
135
Member Avatar for Ahmed91za

I have high hopes for the Swift programming language, the presentation showed a lot of potentials for this language in apple keynote, just a question do you guys think swift will come to windows in an IDK soon?

Member Avatar for vegaseat
0
262
Member Avatar for vegaseat

Ever since I got a fancy iMac and started using the Xcode IDE, I got hooked on Apple's new Swift language. From what I heard, it is supposed to replace the aging Objective C. I left a couple of Swift code snippets in the Computer Science section about my one-month …

Member Avatar for vegaseat
1
397
Member Avatar for ravi_14

#import "Person.h" @class Asset; //i have used import "Asset.h" which contains definition for asset @interface Employee : Person { int employeeID; NSMutableArray *assets; } @property int employeeID; - (void)addAssetsObject:(Asset *)a; - (unsigned int)valueOfAssets; @end I got this snippet from objective c book. In the second line , author has used …

0
244
Member Avatar for pars99

Everytime I link a `webview` into my OS X project, it always brings up `Use of undeclared type 'WebView'`. How am I supposed to fix this? I've tried linking the WebKit framework and things like that, but they never worked.

Member Avatar for vegaseat
0
355
Member Avatar for Al-Haya Noor

Assalam o alikum my name is Al-Haya Noor and i am using very first time the forum. is there any one who guide me? i have a problem while doing my project. in Embedded-C and the problem is Consider the following sequence of values: 00000000 00000000 00000001 00000000 00000000 00000100 …

Member Avatar for rubberman
0
183
Member Avatar for mike_2000_17

# Introduction # A recurring problem many newcomers face when tackling C++ is the compilation process, from sources to binaries. This tutorial will detail that process. It will be especially useful for people only familiar with higher-level languages (if any), but veterans of one or more native languages (C, Fortran, …

Member Avatar for Lutina
15
8K
Member Avatar for sk8ergirl

this is my background http://s13.postimg.org/6zejiqc87/1429994667798.png in current code user can move sprite to any location, but I want the user to only move sprite to specific location. I have one Sprite (s1) I want to move it to specific position as you can see my background have line and dots …

0
149
Member Avatar for Bharat_2

I want to calculate user steps(like pedometer).I know that with iPhone 5s, 6 and 6+ we can use `CMStepcount` or `CMPedometer` or class(which use M7 chip of devices) but iPhone 5 and lower versions does not support M7 chip, so we can't use `CoreMotion`. By searching all over internet i …

Member Avatar for rubberman
0
339
Member Avatar for Mayukh_1

**Okay this is my first post and I am quite excited that how it will be recieved by the community. I have a long experience in C++ programming but never been a part of any community hence I believe that as a tyro, my mistakes will be ignored.** This post …

Member Avatar for NathanOliver
0
309
Member Avatar for mridul.ahuja

I came across this code of [firefly algorithm](http://en.wikipedia.org/wiki/Firefly_algorithm) and need to use it in my major. If any of you could explain the working of the functions, it would be of great help to me. Thanks in advance. #include<iostream> #include<stdio.h> #include<stdlib.h> #include<math.h> #include<time.h> #include<string.h> #include<memory.h> #defineDUMP 1 #defineMAX_FFA 1000 #defineMAX_D …

Member Avatar for Schol-R-LEA
0
289
Member Avatar for Moeez_1

Recently I am facing too much issues in making the apple accept my app because of inapp purchases download failures. Is it possible that I submit a version which will fetch the inapp purchases ID's from my own server and than fetch the inapp purchases details from the apple. I …

0
145
Member Avatar for pinkPanda

I'm trying to create simple game on xcode (swift) what I'm trying to do is moving player pieces from their positions how can I implement moving pieces from [number]positions to [number]positions for example from positions 1 to either 2 or 0 otherwise it get back to the previous positions more …

0
186
Member Avatar for Shane-dev

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if …

Member Avatar for Shane-dev
0
221
Member Avatar for bikash_2

import pygal data = [ ["Python", 30.3], ["Java", 22.2], ["C++", 13], ["Ruby", 10.6], ["Javascript", 5.2], ["C#", 5], ["C", 4.1], ["PHP", 3.3], ["Perl", 1.6], ["Go", 1.5], ["Haskell", 1.2], ["Scala", 1], ["Objective-C", 0.4], ["Clojure", 0.2], ["Bash", 0.1], ["Lua", 0.04], ["TCL", 0.03] ] # Make a Pygal chart pie_chart = pygal.Pie() # add …

Member Avatar for Gribouillis
0
130
Member Avatar for Shane-dev

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if …

Member Avatar for Shane-dev
0
395
Member Avatar for matrixdevuk

Hello. I am getting into app development and started with a calculator. The input is not equal to the output in any size I set. Here are some screenshots: Input: [Screenshot](https://www.dropbox.com/s/otncvnpfotfgetu/Screenshot%202015-02-05%2014.44.43.png?dl=0) Output: [Screenshot](https://www.dropbox.com/s/360u5iastr69hgq/Screenshot%202015-02-05%2014.45.11.png?dl=0) And finally, here is the size thing: [Screenshot](https://www.dropbox.com/s/23aln2fzovpv72y/Screenshot%202015-02-05%2014.46.00.png?dl=0).

Member Avatar for matrixdevuk
0
271
Member Avatar for Method_dev

I am currently writing an iOS application which fills Dynamic cells with data retrieved from a PLIST file. I have searched and searched but cannot comprehend/find a way to make my data searchable. I would like my plist to be searchable and provide the correct information. Any assistance would be …

Member Avatar for Method_dev
0
358
Member Avatar for petrarobert002
Member Avatar for pars99
Member Avatar for pars99
0
224
Member Avatar for patricia_3

Here's my understanding fetching the input: int num = 0; NSLog (@"Input 5 numbers"); scanf("%d", &num); NSLog (@"\n You inputted: %d !", num); Sample Input: 54321 Output: 54321 But the output should be: 5 4 3 2 1

Member Avatar for hericles
0
148
Member Avatar for rayan22

Cant calculate the weighted average score for each category and the total score for the student or assign a letter grade. package teacher_grade; import java.util.Scanner; public class teacher { public static void main (String[] args) { //Scanner objective Scanner Scanner = new Scanner (System.in); double assignmentScore; double quizScore; double midtermScore; …

Member Avatar for Taywin
0
136
Member Avatar for senait.kifle.127

My Objective is to define a function, with a pointer to a list of elements of the structure I created as the first parameter, a C-character string (of type char * ) as the second parameter and one of the of the two values,num or name, from the above enumeration …

0
179
Member Avatar for TyeL89

I am creating a contact program with python and wxpython. While creating the browsing function for my program I ran into a problem. I've been searching for hours trying to find a way to fix it. Unfortunately I haven't had any luck on fixing the error/problem. Here is the code …

0
169
Member Avatar for silent lover

dear daniweb friends, i really need help. i want to parse a json from a file inside folder. that folder inside xcodeproj (not from URL). i use this code: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ /*NSData* kivaData = [NSData dataWithContentsOfURL: [NSURL URLWithString:@"http://json.comli.com/reportTextEn.json"] ];*/ NSString *filePath = [[NSBundle mainBundle] pathForResource:@"reportTextEn" ofType:@"json"]; NSError *error = …

0
179
Member Avatar for teamcodez

I developed a 3d cube consist of 6 layer side by side to form a cube type structure. I am getting the layer info on click using touch event. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { if ([touches count] == 1) { for (UITouch *touch in touches) { CALayer *layer = [(CALayer …

Member Avatar for hericles
0
214
Member Avatar for sing1006

im new in objective c.i have come out with the getter and setter but not sure is correct or not. .h #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(nonatomic, retain) NSString *myText; @property(nonatomic, copy) NSNumber *opacity; @property(nonatomic, assign) id delegate; @end .m #import "ViewController.h" @interface ViewController () @end @implementation ViewController @synthesize …

0
170
Member Avatar for coding101

I Have an NSButton and Im trying to get it to display the barber stripes sideways when the button is pressed. I can't redraw the NSRect, and was wondering if you had any clues on implementation?

0
144
Member Avatar for surferbloggy

Hi i need help to solve this issue: refresh the first controller, UITableview and navigation bar for changing bg colors the color are set and it works i need only to refresh the app for update the app with the new colors i change the colors of my app clicking …

0
157
Member Avatar for surferbloggy

Hi i've done an app and tested even on iphone 4s/5/ 6 in xcode 6 and it works on simulator if i test on a iphone 4s device ios 7.1 and 8 the scrolling doesnt't work on any pages and there is a static page that seems covered and i …

0
133
Member Avatar for Jack_9

Hi i'm new to mobile development and I have some experience with objective-c but not much at all. My best programming language is python and i've written an app but I don't know how to publish it to the app store. FYI it's written in python if you haven't gotten …

Member Avatar for Kelly Burby
0
125
Member Avatar for Mark Kim Bryan

(The power station problem) A power station is on one side of a river that is one-half mile wide, and a factory is eight miles downstream on the other side of the river (see Figure 7-21). It costs $7 per foot to run power lines over land and $9 per …

Member Avatar for Schol-R-LEA
0
361
Member Avatar for silent lover

how to auto logout an apps when user did not touch the screen for at least 2 minutes? i add this to AppDelegate.m : - (void)sendEvent:(UIEvent *)event { [super sendEvent:event]; // Only want to reset the timer on a Began touch or an Ended touch, to reduce the number of …

0
178

The End.